Previous Topic

Next Topic

InputEnum - MaxBasic Function

InputEnum(Domain: String, Prompt: String[, Title: String, Default: String, AllowEmpty: Boolean]): String

Displays a prompt in a dialog box, User must choose a valid enum (Enumerated Type) from a Domain, returns the selected enum.

Note, if User clicks OK or presses Enter InputEnum function returns the enum value. If User clicks Cancel or presses Esc, function returns Null.

InputEnum function syntax has these named arguments:

Parameter

Description

Domain

Required. A valid Domain Definition.

Prompt

Required. String expression displayed as the message in the dialog box.

Title

Optional. String expression displayed in the title bar of the dialog box. If you omit title, the application name is placed in the title bar.

Default

Optional. Enum value displayed in the control as the default response if no other input is provided. If you omit default, the control will display empty.

Allow Empty

Optional, defaults to True. Determines if the Lookup can be cleared after a value has been selected.

See also Scripted Form InputEnum method.

See Also

Input Functions

Book Contents

Book Index