Multi Commander > Script
AskOption "editable" option
(1/1)
zorglups:
(re)Hello Matthias,
I need a AskText with a dropdown list.
Or a AskOption where I can freely enter text.
That is a ComboBox ::)
Could you add one argument to the AskText function so that we can give an array of values to be shown in the dropdown list ?
eg:
<num> AskText( <str> label, <str> inputText, <num> option, <arr> values, <num> selected );
values : An array of strings or numbers that will be shown in the dropdown list.
Note: With the AskText, how can I know if the user pressed cancel or entered "0" ? :-\
Thank you!!!
Pierre
Mathias (Author):
it return 0 as a number if canceled
so if variable is a Num type. it was canceled
--- Code: ---@var $d = AskText("ddd" , "sss", 0 );
if( IsTypeNum($d) == 0 ) // $d is NOT num . 0 = false
{
...
}
--- End code ---
Navigation
[0] Message Index
Go to full version