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.

If the value of the position parameter is less than -1, invoking the $LISTGET function generatesa error.See Also• $LIST function• $LISTBUILD function• $LISTDATA function• $LISTFIND function• $LISTFROMSTRING function• $LISTLENGTH function• $LISTNEXT• $LISTSAME function• $LISTTOSTRING$LISTLENGTH$LISTLENGTHReturns the number of elements in a specified list.$LISTLENGTH(list)$LL(list)ParameterlistAny expression that evaluates to a list.Description$LISTLENGTH returns the number of elements in list.ExamplesThe following example returns 3, because there are 3 elements in the list:WRITE $LISTLENGTH($LISTBUILD("Red","Blue","Green"))The following example returns a 0, because a null string is a valid (zero-element) list.WRITE $LISTLENGTH("")<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 255

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

Saved successfully!

Ooh no, something went wrong!