BBjPrompt::options

Description

In BBj 25.03 and higher, this method sets assorted options on this BBjPrompt, corresponding to the int expr parameter of the PROMPT() function.

Syntax

Return Value Method
BBjPrompt options(int options)

Parameters

Variable Description
options

Numeric expression that customizes the dialog behavior.

Icon

Value BBjPrompt Constant Icon
0 PROMPT_ICON_NONE None
16 PROMPT_ICON_STOP Stop Sign
32 PROMPT_ICON_QUESTION Question Mark
48 PROMPT_ICON_EXCLAMATION Exclamation Point
64 PROMPT_ICON_INFORMATION Information Symbol

MDI

Value BBjMsgBox Constant Action
131072 PROMPT_MDI_DESKTOP If the current window is contained within an MDI desktop, limit the BBjPrompt dialog to the MDI desktop. Ignored if not in MDI.

Return Value

Returns this BBjPrompt object, enabling methods to be chained.

Example

print bbjapi().prompt("Prompt").options(BBjPrompt.PROMPT_ICON_QUESTION).show()

See Also

BBjAPI

PROMPT() Function - Prompt For String Value

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.