Internet Direct (Indy)
Home
PreviousUpNext
IsTopDomain Function

Checks an address for the presence of a top-level domain name.

Pascal
function IsTopDomain(
    const AStr: string
): Boolean;
Parameters 
Description 
Address to be examined. 

Boolean - True when the address is a top-level domain name.

IsTopDomain is a Boolean function that indicates when the value in S represents a top-level domain name. IsTopDomain returns True when the value in S ends with a value recognized as a TLD (Top-Level Domain). For example: COM, ORG, GOV, and EDU. IsTopDomain can also return true when the value in S ends with a country-level domain name such as COM.UK, COM.DE, etc.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.