Ok sorry about this noob question but it's been a long time since I used apms.
I have a combo box with 15 items and the item data is numbered 1,2,3 etc.
this code is not working for me:
Any idea why it's not working? - obviously i have missed out 3-15 but you get the gist.result = ComboBox.GetSelected("ComboBox1");
data = ComboBox.GetItemData("ComboBox1", result);
if data == 1 then
result = Dialog.Message("Notice", "Your message here1.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
elseif == 2 then
result = Dialog.Message("Notice", "Your message here2.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
end

Reply With Quote