std-strlist->csstring


Synopsis

(std-strlist->csstring <strlst>)

Description

"Stringlist to comma seperated string"

STD-STRLIST->CSSTRING combines a list of strings to a string seperated by commas. It is the complement to STD-CSSTRING->STRLIST.

But a complete roundtrip (std-strlist->csstring (std-csstring->strlist str)) will not always return the exact same result because additional whitespace might get deleted.

Examples

(std-strlist->csstring '("" "1" "2")) => ",1,2"
(std-strlist->csstring (mapcar 'std-string-capitalize

(std-csstring->strlist input)))
=>
capitalizes all words seperated by ","

;;; print all layers, comma seperated
(princ "Select Layer: ")
(princ (std-strlist->csstring (std-tblnames "LAYER")))

Arguments

strlst: a list of strings.

Return Value

A string.

Side Effects

None.

Module

(std-require 'STDSTR)

Defined in STDSTR