DADiSP Worksheet Functions > Function Categories > String Manipulation > STRLIST

 

STRLIST

Purpose:

Converts a list of several strings into one long string with embedded newline characters.

Syntax:

STRLIST("str1", ...,"strN")

"strN"

-

Two or more strings.

Returns:

A string.

Example:

strlist("One", "Two")

 

returns the string One Two with embedded newlines (CR-LF).

Example:

W1: 1..100

message(strlist(sprintf("Mean of W%d", getwnum), strnum(mean)))

 

Displays a message box with the text:

 

Mean of W1

50.5

Remarks:

STRLIST is useful in custom dialog boxes that include pull down combo boxes or list boxes.

 

See OBJECTLIST to return a list of Worksheet objects (Datasets, Series, Units, etc.).

 

See STRGET to return a sub-string from a list.

 

See STRSORT to sort a delimited list of strings.

See Also:

FILESTRREP

MESSAGE

OBJECTLIST

SPRINTF

STRCAT

STRFILE

STRGET

STRSORT