PC Review


Reply
Thread Tools Rate Thread

Checking for format in VB.NET

 
 
=?Utf-8?B?bW9zcXVpdG9vdGg=?=
Guest
Posts: n/a
 
      21st Feb 2004
H

how can I check if a string in VB.NET has got the format of an IP address (e.g. 1.2.3.4)

Thanks a lo
mosquitooth
 
Reply With Quote
 
 
 
 
William Ryan eMVP
Guest
Posts: n/a
 
      21st Feb 2004
You can use IPAddress.Parse..you'll throw an exception if it's not valid.
The other option is to use a Regex or other parsing logic but that's more
complexity..
"mosquitooth" <(E-Mail Removed)> wrote in message
news:CB86E715-2CE4-48E3-8C98-(E-Mail Removed)...
> Hi
>
> how can I check if a string in VB.NET has got the format of an IP address

(e.g. 1.2.3.4)?
>
> Thanks a lot
> mosquitooth



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Format Checking George Microsoft Excel Misc 1 9th Mar 2009 04:16 PM
checking the format of e-mail in a textbox zafar Microsoft VB .NET 5 2nd Feb 2007 08:23 AM
checking cell format Gary Keramidas Microsoft Excel Programming 2 15th Aug 2006 05:30 AM
Checking format on input =?Utf-8?B?SmVubmlfU3dlZGVu?= Microsoft Excel Programming 2 15th Jun 2006 12:38 PM
Checking a Date format =?Utf-8?B?S29idXM=?= Microsoft Excel Programming 1 12th Apr 2005 01:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:18 PM.