
This method will return the index of a specified color in a ComboBox that has the Style property set to 4 - Color.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_ComboBox_FindColor MyControlReference [as Reference] nSearchColor [as Integer] ) |
An alternative convention is to identify the control by providing the project file, the dialog name and the control name:
Copy Code |
|---|
(Odcl_ComboBox_FindColor ProjectFile [as String] DialogName [as String] ControlName [as String] nSearchColor [as Integer] ) |
This method works only for the colors style.
Copy Code |
|---|
; Search this in the list (setq rValue (Odcl_ComboBox_FindColor MyProject_MyForm_MyControl 127)) |