SetBit

<< Click to Display Table of Contents >>

 

SetBit

SetBit(Value, BitIndex, BitValue)

Sets the value of Value (True or False) of the bit specified by BitIndex (from zero to 31) to BitValue. This method returns an error in case the BitIndex parameter is outside the allowed range (between zero and 31). This method is available in Links, as well as in scripts.

 

NOTE

This method allows passing an unsigned 32-bit value, in the range between zero and 4,294,967,296, to the Value parameter, but its return value is always a signed 32-bit value, in the range between -2,147,483,648 and 2,147,483,647. If a floating point value is used, only this value's integer part is used.

Was this page useful?