Previous Topic

Next Topic

InputBoolean - MaxBasic Function

InputBoolean(Prompt: String[, Title: String, Default: Boolean]): Boolean

Displays a dialog box, the User must select or clear a checkbox, or click a button; returns a boolean (yes/no) value depending on the checkbox state.

Notes: If User clicks OK or presses Enter, the InputBoolean function returns true or false depending on the checkbox state. If User clicks Cancel or presses Esc, function returns Null.

InputBoolean function syntax has these named arguments:

Parameter

Description

Prompt

Required. A string expression that will display as a message in the dialog box.

Title

Optional. A string expression that will display in the title bar of the dialog box. If you omit a title, the application name will appear in the title bar.

Default

Optional. If you omit a value, the default is false.

See also Scripted Form InputBoolean method and Input Grid InputBoolean method.

See Also

Input Functions

Book Contents

Book Index