Maplets[Tools]
ListBoxSplit
convert the value of a ListBox to a list of strings
Calling Sequence
Parameters
Description
Examples
ListBoxSplit(x)
x
-
value of a ListBox
The ListBoxSplit(x) calling sequence converts a list box value to a list of strings.
withMapletsElements:
maplet≔MapletPick your favorite Canadian capital(s): ,ListBoxLB1sortOttawa, ON,Victoria, BC,Edmonton, AB,Regina, SK,Winnipeg, MB,Toronto, ON,Quebec City, QC,Fredericton, NB,Halifax, NS,Charlottetown, PE,St. John's, NL,Whitehorse, YT,Yellowknife, NT,Iqaluit, NU,lexorder,ButtonOK,ShutdownLB1,ButtonCancel,Shutdown:
result≔MapletsDisplaymaplet:
iftyperesult,stringthenMapletsToolsListBoxSplitresult1endif
Assume the user selects Victoria and Halifax:
MapletsToolsListBoxSplitVictoria, BC,Halifax, NS
Victoria, BC,Halifax, NS
See Also
Maplets[Elements][ListBox]
Overview of Maplet Applications
StringTools[Split]
Download Help Document