Hello.
Help modify this script so that when you select Apple, other text is displayed, for example 1, when Orange is selected, 2 is displayed, and when Pear is selected, 3 is displayed.
Help modify this script so that when you select Apple, other text is displayed, for example 1, when Orange is selected, 2 is displayed, and when Pear is selected, 3 is displayed.
Code:
-- The combo box items table. tbItems = {"Apple", "Orange", "Pear"}; -- Show the dialog combo box. strSelected = Dialog.ComboBox("Select Lunch","Please select the desired fruit:",tbItems,"Apple",false,false,MB_ICONQUESTION); if ((strSelected ~= "") and (strSelected ~= "CANCEL")) then Dialog.Message("Result", "The chosen fruit is "..strSelected); end
Comment