I have a combo box (drop down list) with US states and I need to put that into a variable.
In another button, I need to do something with that same variable.
I did the following:
Code: Select all
on menuPick pChosenItem, pPreviousTab
global varState
put pChosenItem into varState
--answer varState with "ok"
end menuPick
That does seem to work (the commented out answer box would show me the correct picked state), but when I try to do something with that same variable when pressing a button, the answer box just shows the word varState, not the contents of the variable varState.
I tried:
Code: Select all
put the text of varState into varStateNew
that did not work and threw an error.
How can I get the value of varState into another control's script?
Mike