
This method retrieves the filter string used by a TextBox control to filter the text entered by the user.
For example a setting of "0123456789" for the FilterStringCollection argument will tell the TextBox to only accept keyboard keys of that are in the string.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_TextBox_SetFilter MyControlReference [as Reference] FilterStringCollection [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_TextBox_SetFilter ProjectFile [as String] DialogName [as String] ControlName [as String] FilterStringCollection [as String]) |
Copy Code |
|---|
; Set a new filter (Odcl_TextBox_SetFilter MyProject_MyForm_MyControl "0123456789") |