Jump to content

Retrieving ComboBox position, rather than its text


 Share

Recommended Posts

According to the documentation, GUICtrlRead returns the "value selected", which through trial and error I found was the 'TEXT' of the combo box item, not its position.   This was kind of surprise since I'm not passing the 'advanced' option parameter that enables the return of the text.

But I've got a long list of ComboBox values ("Ch0", "Ch1",  ...  "Ch32") that I'd like to see which is selected without comparing strings.   Is there a way for  GUICtrlRead to return the position of the selected value, not its text?

 

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...