Hi,
Anyone know what function to call to get the 'index' of the currently chosen item in a ComboBox?
ComboBox using addItem adds a 'Name' string and a 'Text' string.
The first 'Name' value is returned to the program variable.
I now want to grab the 'Text' that went with that choice.
But how do I get it without knowing the index of the choice?
The only function I can find to get the text is 'getItemText' which requires an integer 'index' parameter.
I know I could write something to run through the form (or dom tree?) and find it, but I think it should be simpler than that, like maybe a function called getCurrentIndex() or something.
example:
CALL cb.clear()
CALL cb.addItem("O","Open Driver")
CALL cb.addItem("T","Trials Driver")
CALL cb.addItem("V","Overseas Junior Driver")
CALL cb.addItem("J","Junior Driver")
if user chooses 3rd option above the program variable gets 'V', I am after an easy retreive of associated text string value "Overseas Junior Driver" to display and use elsewhere.
Thanks,
Bryce Stenberg
Harness Racing New Zealand Inc.