Field-Map Scripting

4.1.7.15 GetBitOfInteger

GetBitOfInteger function


Prototype:

function GetBitOfInteger (const IntegerVar :integer; const Bit :byte {0..31}) :byte {0/1}

Description:


Syntax:

variable := GetBitOfInteger(Value, Bit);


Part

Description


variable

variable declared as byte


Value

number, the bits we want to get


Bit

number of the bit from which the value is to be read {0..7}




Return value:

0/1



See also:                

String2Float; Variant2Float; Variant2Integer; Variant2String; String2Variant; Boolean2Integer; Date2Integer; Integer2Date; Int2Hex; IntToHex; GetBitFromLastThreeDigits;

SetBitOfDouble; GetBitOfDouble; SetBitOfInteger;  GetBitIfInteger; SetBitOfBigInt;  GetBitOfBigInt