List Box MW Directive

Syntax

%MW%

Description

The MW directive populates the List Box with the selections of a Multi-Select List Box. The Choices argument is not used in the List Box Control Syntax. When you have multiple directives in a Format string, you separate them with semi-colons ";".

Example

dim a_cities[100] as C
cities = "Atlanta,New York,Los Angeles,Boston,Johannesburg,Sydney,Perth,Adelaide,Brisbane,"
cities = cities + "Darwin,Melbourne,Cape Town,Pretoria,Bloemfontein,Bethlehem,Tel Aviv,Jerusalem,"
cities = cities + "Little Rock,Paris,London,Munich,Nice,Frankfurt,Berlin,Athens,Barcelona,Madrid"
cities = stritran(cities,",",crlf())
a_cities.initialize(cities)
a_cities.sort()
ui_dlg_box("Multi-Select List Box",<<%a%
{wrap=45}
[%M;c=15;H%.45,5cities_chosen^#a_cities];
{line=1,0};
This variable shows what entries in the above list box are selected.;
[%mw%.30,5cities_chosen];
%a%)

See Also