Internet Direct (Indy) Version 9.0.1 Beta
TIdStack.IsIP
Detects a numeric IP address.

function IsIP(AIP: string): boolean;
Parameters
AIP: string
Host name or IP address to be checked.

Returns
Boolean - True if the parameter is a numeric IP address.

Description
IsIP is a Boolean function that returns True if the string in AIP is a numeric IP address, or False if AIP contains a host name.

For example, if the value "129.71.2.4" is passed as AIP, this function will return True. If the value "wvnvm.wvnet.edu" is passed in AIP, this function will return False.