PDA

View Full Version : Help on ui_popup_menu


ABC123

James Connors
02-05-2005, 07:28 AM
Trying to use ui_popup_menu command in Xbasic. In Alpha help there is a good description of the command. Sets up menu with George, Peter, Paul. etc. This works fine. I am having troble with selection code. "George" works fine.... but how do you get something to happen on "Peter" "Paul"
when selected. Have tried else elseif.. no deal.. help ?

Bill Warner
02-05-2005, 07:51 AM
Try something like this:

If var = "George"
do this
elseif var = "Peter"
do that
end if

where var is the variable that gets the value based on which one you clicked on.