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.

<strong>Caché</strong> <strong>ObjectScript</strong> FunctionsNotesError for Invalid ListsIf list is not a valid list, <strong>Caché</strong> generates a error.SET x=$CHAR(0,0,0,1,16,27,134,240)SET a=$LISTLENGTH(x) // generates a error$LISTLENGTH and Nested ListsThe following example returns 3, because $LISTLENGTH does not recognize the individualelements in nested lists:SET X=$LISTBUILD("Apple","Pear",$LISTBUILD("Walnut","Pecan"))WRITE $LISTLENGTH(X)See Also• $LIST function• $LISTBUILD function• $LISTDATA function• $LISTFIND function• $LISTFROMSTRING function• $LISTGET function• $LISTNEXT• $LISTSAME function• $LISTTOSTRING256 <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!