11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Legacy Commands and Functions• $ZTRAP special variable• Error Handling in Using <strong>Caché</strong> <strong>ObjectScript</strong>$ZBITAND (legacy function)Bitstring function – AND.$ZBITAND(bitstring1,bitstring2)DescriptionThis page describes the legacy function $ZBITAND. It is described here for compatibilitywith legacy applications.$ZBITAND returns a bitstring formed by the (bitstring1 AND bitstring2) operation. Thelength of the resulting bitstring equals the length of the shorter of the two specified bitstrings.The value of the resulting bitstring is 1 in all positions where both bitstrings held a 1, and 0in all other positions.ExampleIf bitstring1 = [0,1,1,0] and bitstring2 = [0,1,0,0], then the result of $ZBITAND would be[0,1,0,0]. That is:Position 1: 0 and 0 = 0Position 2: 1 and 1 = 1Position 3: 1 and 0 = 0Position 4: 0 and 0 = 0$ZBITCOUNT (legacy function)Bitstring function – COUNT.$ZBITCOUNT(bitstring)DescriptionThis page describes the legacy function $ZBITCOUNT. It is described here for compatibilitywith legacy applications.758 <strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!