Topic Path: Symbol Reference > Classes > TIpProperty Class > TIpProperty Properties > AsBinaryString Property
TIpProperty.AsBinaryString Property

Represents a string containing the individual bits in the 32-bit IP address.

property AsBinaryString: String;

AsBinaryString is a String property that represents the individual bits in the 32-bit IP address or network mask. "1" indicates that the bit set. "0" indicates that the bit is not set. AsBinaryString should always contain a string with a length of 32 characters. 

For example, the network mask would be represent by AsBinaryString in the form "11111111111111111111111100000000". 

AsBinaryString calls SetAll to update the value of the individual bytes in the IP address. 

Use Byte1, Byte2, Byte3, Byte4, AsDoubleWord, or AsString to access the value of the IP address in other representations.

bIsSet := AIpProp.AsBinaryString[1] = '1';

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