Bitstring function – SET.
This page describes the legacy function $ZBITSET
. It is described here for compatibility with legacy applications.
Positive integer that specifies a location in bitstring
. It can be specified as a value, a variable, or an expression. Bits are counted left-to-right, with the first bit counted as number 1.
Single-bit binary value (0 or 1).
The following example creates a bitstring using $ZBITSTR, then sets a bit using $ZBITSET.
If bitstring=[0,0,0,0,0], position
=3, and truthval
=1, then the result of $ZBITSET
would be a bitstring with the value [0,0,1,0,0].
© 1997-2019 InterSystems Corporation, Cambridge, MA