11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DescriptionThis page describes the legacy function $ZBITSTR. It is described here for compatibilitywith legacy applications.$ZBITSTR returns a bitstring whose length is size bits long, with all of its bits set to truthval.ParameterssizePositive integer. The integer must be in the range 1 to 262,128 bits (32766 x 8). It can bespecified as a value, a variable, or an expression.truthvalSpecifies a binary value (0 or 1) for the returned bits. If truthval is 0, or is omitted, all thebits are set to 0 (OFF). If truthval is 1, all the bits are set to 1 (ON).ExampleThe following example creates a bitstring named bs:SET bs=$ZBITSTR(4,1)If size=4 and truthval=1, then the result of $ZBITSTR would be a bitstring with the value[1,1,1,1].$ZBITXOR (legacy function)Bitstring function – XOR.$ZBITXOR(bitstring1,bitstring2)Description$ZBITXOR (legacy function)This page describes the legacy function $ZBITXOR. It is described here for compatibilitywith legacy applications.$ZBITXOR returns a bitstring formed by the (bitstring1 XOR bitstring2) operation. Thelength of the resulting bitstring equals the shorter length of the two bitstrings.The following table shows the four possible results obtained by performing the XOR operationon two bits (b1 and b2):<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 765

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!