Topic Path: Symbol Reference > Functions > IPv4ToDWord Function (string, Boolean)
ContentsIndexHome
PreviousUpNext
IPv4ToDWord Function

Converts an IP version 4 IP address to its representation as an unsigned 32-bit numeric value.

File
function IPv4ToDWord(
    const AIPAddress: string; 
    var VErr: Boolean
): Cardinal; overload;
Parameters 
Description 
AIPAddress 
Numeric IP address to convert to the ordinal value.
 
VErr 
Indicates an error occurred while conerting the IP address to its numeric representation. 

Cardinal - Unsigned 32-bit value representing the IP address.

IPv4ToDWord is an overloaded function used to convert an IP version 4 IP address to its representation as an unsigned 32-bit numeric value. 

AIPAddress is the IP address, in dotted decimal or hexadecimal form, to convert to the ordinal data type. 

 

For the .Net platform, the implementation of IPv4ToDWord relies on IPAddress from the Framework API to determine if the IP address is in the correct address family and internetwork prior to conversion. 

Use MakeDWordIntoIPv4Address to convert a numeric value into an IP version 4 IP address.

IPv4ToDWord

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