You are here: start » ppl » statements » bitclear

BITCLEAR variable:multitype, bit:integer

BITCLEAR variable:multitype, bit:integer

Clears 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: BitSet, IsBitSet

ppl/statements/bitclear.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