Internet Direct (Indy)
Home
PreviousUpNext
DomainName Function
Pascal
function DomainName(
    const AHost: String
): String;
Parameters 
Description 
AHost 
Host address to be used. 

String - Domain name from the internet address.

DomainName is a String function that returns the domain name portion of a host name, including the '.'

sDomain := DomainName('borland.com');
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.