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.

$LISTFINDSET x=$CHAR(0,0,0,1,16,27,134,240)SET a=$LISTDATA(x,1) // generates a errorIf the value of the position parameter is less than -1, invoking the $LISTDATA functiongenerates a error.See Also• $LIST function• $LISTBUILD function• $LISTFIND function• $LISTFROMSTRING function• $LISTGET function• $LISTLENGTH function• $LISTNEXT• $LISTSAME function• $LISTTOSTRING$LISTFINDSearches a specified list for the requested value.$LISTFIND(list,value,startafter)$LF(list,value,startafter)ParameterslistvaluestartafterAn expression that evaluates to a valid list. A list is an encodedstring containing one or more elements. A list must be created using$LISTBUILD or $LISTFROMSTRING, or extracted from another listusing $LIST.An expression containing the desired element value.Optional — An expression interpreted as a list position. The searchstarts with the element after this position.<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 249

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

Saved successfully!

Ooh no, something went wrong!