Indy 9
IsDomain
See Also, Unit: IdGlobal
Indicates if a Host address represents a valid Domain name.
function IsDomain(const S: String): Boolean;
Unit
IdGlobal
Parameters
const S: String
Domain name to be validated.
Return Value
Boolean - True when not an IP Address or Top-Level Domain Name.
Description
IsDomain is a Boolean function that indicates if the value in S represents a Domain name. The value is considered a Domain name when it does not contain a valid IP address in dotted-decimals format, and it is not a Host name or Top-Level Domain name.

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