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.

$ZWCHAR$ZWCHARReturns the requested two-byte string.$ZWCHAR(n)$ZWC(n)ParameternPositive integer that can be specified as a value, a variable, or an expression.Description$ZWCHAR returns a two-byte string for n. It is the functional equivalent of:WRITE $CHAR(n#256,n\256)ExampleThe following example returns the two-byte string for the integer 25185:WRITE $ZWCHAR(25185)returns: abNotes$ZWCHAR and $CHAR$ZWCHAR is similar to $CHAR except that it operates on 16-bit words instead of 8-bitbytes. To operate on 32-bit double words, use the $ZLCHAR function.$ZWCHAR and $ZWASCII$ZWASCII is the logical inverse of the $ZWCHAR function. For example:WRITE $ZWCHAR(25185)returns: abWRITE $ZWASCII("ab")returns: 25185See Also• $CHAR function<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 729

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

Saved successfully!

Ooh no, something went wrong!