Quantcast
Channel: Indigo Rose Software Forums - Forums
Viewing all articles
Browse latest Browse all 2105

Dialog.Combobox, need help

$
0
0
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.
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

Viewing all articles
Browse latest Browse all 2105

Trending Articles