Get Integer Dialog Box

The getint command displays the Get Integer dialog box and prints the integer number entered by the user. It's syntax is as follows:

getint [<title>="Enter an integer" [<label>="" [<default>="" [<min>=-2147483647 [<max>=2147483647 [<step>=1 [errormsg=""]]]]]]]

The "title" is the text which is displayed on the titlebar of the Get Integer dialog box. It's default value is "Enter an integer".

The "label" is the text which is shown to the user (it usually gives user an idea about what should be entered).

The "default" is the default integer number which is placed.

The "min" is the minimum integer value which is allowed. Default is -2147483647.

The "max" is the maximum integer value which is allowed. Default is 2147483647.

The "step" is the amount by which the values change as the user presses the arrow buttons to increment or decrement the value. By default it's value is 1.

The "errormsg" is the error message which gets printed when the user closes the Get Integer dialog box by clicking on the Cancel button.

Example: getint "Enter Number" "Enter a random number:" 150

Get Integer - FireCMD

The above command displays a Get Integer dialog box with title "Enter Number". "Enter a random number:" is the label displayed. 150 is the value displayed by default.


Documentation Index Page