List Box ME Directive

Syntax

%ME%

Description

When multiple items are selected, the ME directive causes a multi-select list box to place the value that has focus at the beginning of the list that it returns.

Example

list_all = <<%a%
red
green
yellow
blue
orange
%a%
ui_dlg_box("test",<<%dlg%
[%M%.100,10selected^#list_all!selected_changed];
selected list - before rearranging;
[%m%.100,5selected];
selected list - after rearranging;
[%m%.100,5selected2];
%dlg%,<<%code%
if a_dlg_button = "selected_changed" then
    a_dlg_button = ""
    dim list1 as C
    list1 = word_subtract(list_all,selected,crlf())
    selected2 = word_subtract(list_all,list1,crlf())
end if
%code%)

See Also