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

Converts and IP version 4 address to its simplest and most significant form.

File
function MakeCanonicalIPv4Address(
    const AAddr: string
): string;
Parameters 
Description 
AAddr 
IP address to be converted/normalized. 

string - IP address in dotted decimal form.

MakeCanonicalIPv4Address is a String function used to convert the IP version address in AAddr to its simplest and most significant form as a numeric address in dotted decimal form. MakeCanonicalIPv4Address is used to normalize IP addresses which may contain octal or hexadecimal values. 

MakeCanonicalIPv4Address calls IPv4ToDWord to convert the value in AAddr to a cardinal value, and calls MakeDWordIntoIPv4Address to return the cardinal value to dotted decimal form. 

MakeCanonicalIPv4Address will return an empty string if an error occurs while converting AAddr. 

Use MakeCanonicalIPv6Address to convert an IP version 6 address to its simplest and most significant form.

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