convert the value of a ListBox to a list of strings - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Maplets : Tools : Maplets/Tools/ListBoxSplit

Maplets[Tools][ListBoxSplit] - convert the value of a ListBox to a list of strings

Calling Sequence

ListBoxSplit(x)

Parameters

x

-

value of a ListBox

Description

• 

The ListBoxSplit(x) calling sequence converts a list box value to a list of strings.

Examples

withMaplets[Elements]:

maplet:=MapletPick your favorite Canadian capital(s): ,ListBox'LB1'sortOttawa, 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,Shutdown'LB1',ButtonCancel,Shutdown:

result:=Maplets[Display]maplet:

iftyperesult,'string'thenMaplets[Tools]ListBoxSplitresult1end if

Assume the user selects Victoria and Halifax:

Maplets[Tools]ListBoxSplitVictoria, BC,Halifax, NS

Victoria, BC,Halifax, NS

(1)

See Also

Maplets[Elements][ListBox], Maplets[Tools], Overview of Maplet Applications, StringTools[Split]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam