
This method finds the first string in a ComboBox that contains a list item with the specified prefix or partial match without changing the ComboBox selection. A search for "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_FindString 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_FindString 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 in the list (setq rValue (Odcl_ComboBox_FindString MyProject_MyForm_MyControl "grape")) |