
This method will return the index of a specified line weight in a ComboBox that has the Style property set to 5 - LineWeight.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_ComboBox_FindLineWeight MyControlReference [as Reference] nLineWeight [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_FindLineWeight ProjectFile [as String] DialogName [as String] ControlName [as String] nLineWeight [as Integer] ) |
This method works for the line weight style.
Copy Code |
|---|
; Search this in the list (setq rValue (Odcl_ComboBox_FindLineWeight MyProject_MyForm_MyControl 5)) |