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.

In the following example, ZZDUMP shows the first element as having a length of ten (0A):four characters, each two bytes long, plus the ZZDUMP's length and datatype bytes. Thedatatype byte is 02 (Unicode string). Each character is represented by two bytes in littleendianorder. The second element has a length of five (05): three characters, plus the lengthand datatype bytes. The datatype byte is 01 (Binary string).SET z=$LISTBUILD($CHAR(987)_"ABC","ABC")ZZDUMP z0000: 0A 02 DB 03 41 00 42 00 43 00 05 01 41 42 43 ..Û.A.B.C...ABCSee Also• ZZDUMP command• $LIST function• $LISTDATA function• $LISTFIND function• $LISTFROMSTRING function• $LISTGET function• $LISTLENGTH function• $LISTNEXT• $LISTSAME function• $LISTTOSTRING$LISTDATA$LISTDATAIndicates whether the specified element exists and has a data value.$LISTDATA(list,position)$LD(list,position)ParameterslistpositionAn expression that evaluates to a valid list.Optional — An expression interpreted as a position in the specified list.<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 247

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

Saved successfully!

Ooh no, something went wrong!