method InputCode(ControlName: String, CodeType: String, Prompt: String[, Filter: String, FilterButtonVisible: Boolean, AllowInactive: Boolean, AllowEmpty: Boolean, UseExactMatch: Boolean])
Define a lookup control on a scripted form that allows input of a code from a specified master record.
InputCode method syntax has these named arguments:
Parameter |
Description |
|---|---|
Control Name |
Required. Name of the control. Must be a valid MaxBasic identifier. |
Required. Code type 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 Inactive |
Optional. Determines if Display Inactive Records button is available on the control. Defaults to False. |
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. |
See also MaxBasic InputCode function and Input Grid InputCode method.