std-strlist->dclstring


Synopsis

(std-strlist->dclstring <strlst>)

Description

"Stringlist to space seperated string suitable for DCL listboxes"

STD-STRLIST->DCLSTRING combines a list of strings to a string seperated by whitespace suitable for multiple_select list_box controls. It is the complement to STD-DCLSTRING->STRLIST.

Note

Until AutoCAD R14 GET_TILE and SET_TILE with multiple listboxes had a limitation of max. ~80 selectable entries (255 chars). Robert Schweisser posted a workaround on comp.cad.autocad, see contrib/REINI_MFD.LSP. In short: use an action_tile on the multiple listbox to add or remove the entries with your own global list of selected entries, don't use get_tile/set_tile.

Examples

;; activate the first and second list entry.
(set_tile "mlist" 
  (std-strlist->dclstring (mapcar 'itoa '(1 2))) ; => "1 2"
)

Arguments

strlst: a list of strings.

Return Value

A string.

Side Effects

None.

Module

(std-require 'STDSTR)

Defined in STDSTR