Search a combo box to find an entry that matches value in Visual COBOL data field
When it finds a match it needs to set the current index of the combo box to the position within the combo box where the compare was true. How can this be done?
Something like the following should work:
01 compareField string.
01 emp-type pic x(20) value "Full Time".
set compareField to emp-field
set comboBox1::SelectedIndex to comboBox1::FindStringExact(compareField::TrimEnd(' '))