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.

Routine, Debugging, and Other CommandsNotesThe Length Byte and Long List ElementsIn the relatively small list items in the above examples, the length byte has always appearedin the printdata as a dot (a non-printing character). In fact, the character displayed in printdatafor the length byte depends on the hexadecimal value of the length byte. Therefore, stringslonger than 29 characters (length=31) display the length byte as a printable character inprintdata.When a list item exceeds 253 characters, length can no longer be specified using a singlebytelength indicator. In these cases, length is represented by a three-byte field. Unlike thesingle-byte length, the three-byte length field is not included in the total length.UnicodeIf one or more characters in a ZZDUMP expression is a wide (Unicode) character, all charactersin that expression are represented as wide characters. The following examples showthree variables containing a Unicode character. In all three cases, all characters are displayedas wide characters. Note however, that $LISTBUILD imposes its own formatting on therepresentation of wide characters, always using little-endian order regardless of the hardwareplatform. For further details, refer to the $LISTBUILD function.SET x=$CHAR(987)SET y=$CHAR(987)_"ABC"SET z=$LISTBUILD($CHAR(987)_"ABC")ZZDUMP x,y,z0000: 03DB ?0000: 03DB 0041 0042 0043 ?ABC0000: 0A 02 DB 03 41 00 42 00 43 00 ..Û.A.B.C.See Also• $CHAR function• $DOUBLE function• $LISTBUILD function• $ZHEX function418 <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!