method InputCustomCode(FieldName: String, TableName: String, Prompt: String[, Filter: String, FilterButtonVisible: Boolean, AllowEmpty: Boolean, UseExactMatch: Boolean])
Define a lookup control on a scripted form that allows input of a code from a specified custom table or memory table.
InputCustomCode method syntax has these named arguments:
Parameter |
Description |
|---|---|
Field Name |
Required. Name of the control. Must be a valid MaxBasic identifier. |
Table Name |
Required. Custom table or memory table object to select code to display in the Lookup. |
Prompt |
Required. Prompt text to display to left of the control. |
Filter |
Optional. Filter expression for limiting available master file code. |
Filter Button Visible |
Optional. Determines if the filter button is available on the control. Defaults to True. |
Allow Empty |
Optional. Determines if the Lookup can be cleared after a value has been selected. Defaults to False. |
Use Exact Match |
Optional. Determines if the Lookup can accept and return values not in the code list. Defaults to True. |
Note: You can load and save customisations to the drop-down list by right-clicking in the list and selecting
Customise.
See also MaxBasic InputCustomCode function and Input Grid InputCustomCode method.