
This method finds the first string in a ComboBox that contains a list item with the exact string match without changing the ImageComboBox selection. A search for "Example Text" will find "Example Text". Use the ComboBox_SelectString function instead to both find and select a string.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_ComboBox_FindStringExact MyControlReference [as Reference] sSearchString [as String] ) |
An alternative convention is to identify the control by providing the project file, the dialog name and the control name:
Copy Code |
|---|
(Odcl_ComboBox_FindStringExact ProjectFile [as String] DialogName [as String] ControlName [as String] sSearchString [as String] ) |
This method does not work for directory picker style.
Copy Code |
|---|
; Search this exact string in the list (setq rValue (Odcl_ComboBox_FindStringExact MyProject_MyForm_MyControl "Grape")) |