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.
with⁡MapletsElements:
maplet≔Maplet⁡Pick your favorite Canadian capital(s): ,ListBoxLB1⁡sort⁡Ottawa, 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,Button⁡OK,Shutdown⁡LB1,Button⁡Cancel,Shutdown⁡:
result≔MapletsDisplay⁡maplet:
iftype⁡result,stringthenMapletsToolsListBoxSplit⁡result1endif
Assume the user selects Victoria and Halifax:
MapletsToolsListBoxSplit⁡Victoria, BC,Halifax, NS
Victoria, BC,Halifax, NS
See Also
Maplets[Elements][ListBox]
Overview of Maplet Applications
StringTools[Split]
Download Help Document