
This method will fill the ComboBox with a list of files found in the directory search that matches the sExtension argument. If the sExtension is not specified *.* is assumed.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_ComboBox_Dir MyControlReference [as Reference] sDirectory [as String] [Optional] sExtension [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_Dir ProjectFile [as String] DialogName [as String] ControlName [as String] sDirectory [as String] [Optional] sExtension [as String] ) |
Copy Code |
|---|
; List the folder (Odcl_ComboBox_Dir MyProject_MyForm_MyControl "C:\Program Files\AutoCAD 2010\Sample\Dynamic Blocks" "*.dwg") |