The result of the selected item is the index value of the item selected 1,2,3,4....
Can the text of the selected item be used... label or something?
I could do this in code depnding on the item selected but I have a few of these to do so I would prefer to be able just to use the text of the selected item not it's index value.
Currently I am having to do this
Code: Select all
mobilePick "OFF" & return & "ON" & return & "FLASHING" & return & "1 FLASH" & return & "2 FLASHES"
switch the result
case "1"
Put "OFF" into toperation
break
case "2"
Put "ON" into toperation
break
case "3"
put "FLASHING" into toperation
break
case "4"
put "1 FLASH" into toperation
break
case "5"
put "2 FLASHES" into toperation
break
end switch
set the label of btn "operation" to toperation