Internet Direct (Indy)
Home
PreviousUpNext
TIpProperty.AsBinaryString Property

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

Pascal
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 255.255.255.0 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';

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.