Ask for Integer

Prompts the user to enter an integer.

 

Input Arguments

 

0

String

Question to ask

A prompt to display to the user.

1

Integer

Initial Value

A default value to optionally display in the answer field.

2

Boolean

Enforce Min/Max Values?

Indicates whether the supplied min/max range

should be enforced on the input.

3

Integer

Min Value

The minimum allowable value (if argument 2 is TRUE).

4

Integer

Max Value

The maximum allowable value (if argument 2 is

TRUE).

5

Font Type

Font

The font to use.

6

Step ID

Step to jump to if Canceled (-1 will fail step on Cancel)

The step to jump to if the user cancels or closes the dialog.

 

Return Arguments

 

7

Integer

Answer

The integer entered by the user.

 

Returned Status

 

SUCCESS

The integer was accepted successfully.

FAILURE

The user clicked the Cancel or Close buttons and argument 6 was -1.

 

Remarks

Data is validated automatically. If the user enters a non-integer value into the field, a warning will be displayed and the user will be prompted to re-enter a value.

If argument 2 is TRUE and the user enters a value outside the supplied min/max range, a warning will be displayed and the user will be prompted to re-enter a value.