function IsBitSet(const AValue, AIndex: Integer): Boolean; begin Result := AValue and (1 shl AIndex) <> 0; end;
No replies to this topic
#1
Posted 22 December 2010 - 05:30 AM
The following code will see the value of specific bit (specified by AIndex) of an integer value. If the bit is 1, the function returns True, else it returns False.
|
|
|
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









