BBjPrompt::timeout

Description

In BBj 25.03 and higher, this method sets the BBjPrompt timeout in seconds. If not specified, the BBjPrompt will wait indefinitely for the user to make a selection.

Syntax

Return Value Method
BBjPrompt timeout(int timeout)

Parameters

Variable Description
timeout Timeout in seconds (0 for no timeout).

Return Value

Returns this BBjPrompt object, enabling methods to be chained.

Remarks

If the user doesn't make a selection within timeout seconds, the BBjPrompt returns the initial default value.

Example

prompt! = bbjapi().prompt("Enter your password").modes("input-type=password").timeout(5)
print prompt!.show()

See Also

BBjAPI

PROMPT() Function - Prompt For String Value

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