Topic Path: Symbol Reference > Functions > IsTopDomain Function
ContentsIndexHome
PreviousUpNext
IsTopDomain Function

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

File
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.

Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.