You are here: start » ppl » statements » bitset

BITSET variable:multitype, bit:integer

BITSET variable:multitype, bit:integer

Set a specified bit from a variable.
This statement is primarily intended to be used with BIGSTR variables which can be up to 2048 bytes long. However, it will work with other data types as well if desired. Just be aware of the potential problems in 'bit twidling' non-string buffers and then trying to access them later as their 'intended' type without re-initializing the variable. If the bit parameter (an integer from 0 to the number of bits in the object) is invalid no processing takes place.
See also: BitClear, IsBitSet

ppl/statements/bitset.txt · Last modified: 2019/04/16 14:00
CC Attribution 4.0 International Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution 4.0 International