Indy 9
IsValidIP
Unit: IdGlobal
Indicates if an argument contains a valid IP address.
function IsValidIP(const S: String): Boolean;
Unit
IdGlobal
Parameters
const S: String
Value to be examined.
Return Value
Boolean - True when a dotted-decimal IP address is detected.
Description
IsValidIP is a Boolean function that indicates if the S argument contains a valid IP address in dotted-decimal form. IsValidIP returns True when the string contains 4 decimal segments, each having a value in the range 0 to 255. For example:

    192.168.0.1

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.