RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.TIntegerSet Type

TIntegerSet is used to treat an integer as a set of bits.

Pascal
TIntegerSet = set of 0..SizeOf(Integer) * 8 - 1;
C++
0..SizeOf(Integer) * 8 - 1 TIntegerSet;

SysUtils

Type TIntegerSet = set of 0 .. Integer-bit-size-1; 

Assuming that an integer is 4 bytes (=32 bits), the set will 0 .. 31. TIntegerSet is typically used to treat an integer as a set of bits. To do so, an integer variable value is assigned to a TIntegerSet variable using TIntegerSet casting. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!