We are running into a curious issue.
When we create an xdialog multi-select list box and select multiple entries, the returned string gives us the last one chosen first, then the rest in top-down order.
Shouldn't the list be in the order selected?
Please see and try the example below.
If you select "A","B", and "E",
The returned list will be
E
A
B
Not exactly what we are expecting...
Any insight would be helpful.
Tom
When we create an xdialog multi-select list box and select multiple entries, the returned string gives us the last one chosen first, then the rest in top-down order.
Shouldn't the list be in the order selected?
Please see and try the example below.
If you select "A","B", and "E",
The returned list will be
E
A
B
Not exactly what we are expecting...
Code:
DIM SHARED list1 as C DIM SHARED varC_result as C DELETE a_list1 DIM a_list1[5] as c dim temp_list as c temp_list = <<%list% A B C D E %list% Dim format as p Format.tab_stops="" Format.odd_row_color="White" Format.even_row_color="Blue White" Format.odd_selected_color="Dark Blue" Format.even_selected_color="Dark Blue" Format.font="Arial,9" Format.font_color_unselected="Black" Format.font_color_selected="White" Format.lastbutton="OK" Format.group_size=1 Format.number_rows=.f. Format.alternating_bands=.t. temp_list = a5_owner_draw_list_fmt(temp_list,Format) a_list1.initialize(temp_list) ok_button_label = "&OK" cancel_button_label = "&Cancel" varC_result = ui_dlg_box("Alpha Five",<<%dlg% {region} Type prompt here:| [%M;d;O={@@}%.40,5list1^#a_list1]; {endregion}; {line=1,0}; {region} <*15=ok_button_label!OK> <15=cancel_button_label!CANCEL> {endregion}; %dlg%) debug(1)
Tom
Comment