method InputCode(FieldName: String, CodeType: String[, Filter: String, FilterButtonVisible: Boolean, AllowInactive: Boolean, AllowEmpty Boolean, UseExactMatch: Boolean])
Define a Lookup control in an input grid that allows input of a code from a specified master record.
InputCode method syntax has these named arguments:
Parameter |
Description |
|---|---|
Field Name |
Required. Name of field to display this editor for. |
Required. String expression used to select the type of code to be entered. |
|
Filter |
Optional. Filter expression for limiting available master file codes. |
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 Scripted Form InputCode method.