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.

$LISTTOSTRING• $LISTNEXT• $LISTTOSTRING$LISTTOSTRINGCreates a string from a list.$LISTTOSTRING(list,delimiter)$LTS(list,delimiter)ParameterslistdelimiterA <strong>Caché</strong> list, created using $LISTBUILD or $LISTFROMSTRING, orextracted from another list using $LIST.Optional — A delimiter used to separate substrings. Specify delimiter asa quoted string. If no delimiter is specified, the default is the comma (,)character.Description$LISTTOSTRING takes a <strong>Caché</strong> list and converts it to a string. In the resulting string, theelements of the list are separated by the delimiter.A list represents data in an encoded format which does not use delimiter characters. Thus alist can contain all possible characters, and is ideally suited for bit-string data.$LISTTOSTRING converts this list to a string with delimited elements. It sets aside aspecified character (or character string) to serve as a delimiter. These delimited elements canbe handled using the $PIECE function.Note:The delimiter specified here must not occur in the source data. <strong>Caché</strong> makes no distinctionbetween a character serving as a delimiter and the same character as a datacharacter.ParameterslistA <strong>Caché</strong> list, which contains one or more elements. A list is created using $LISTBUILD orextracted from another list using $LIST.If the expression in the list parameter does not evaluate to a valid list, a error occurs.<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 261

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

Saved successfully!

Ooh no, something went wrong!