Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
Validate IP Address
Author:
MattH
Submitted:
6/4/2011
Version:
VB 2010
Compatibility:
VB 2005, VB 2008, VB 2010
Category:
Miscellaneous
Views:
11847
Validation of IP address.
Declarations:
'none
Code:
Public Function ValideIPAddress(ByVal IPAddress As String) As Boolean Dim sBytes As String() = Split(IPAddress, ".") For Each sByt As String In sBytes If IsNumeric(sByt) Then If sByt < 0 And sByt > 255 Then Return False End If Else Return False End If Next Return True End Function
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement