Skip to content

dos_getint

Dale Fugier edited this page Jul 1, 2026 · 1 revision

Windows Dialog box equivalent to LISP getint function. ADSRX limits integers to 16-bit signed numbers with values ranging from +32767 to -32,768.

Syntax

(dos_getint title prompt [flags [default [max [min]]]])

Parameters

title

A string containing the dialog box title.

prompt

A string containing a prompt.

flags

An optional bit-coded integer identifying the desired validation. Specify more than one validation by adding the following bit values:

Value Description
0 No additional validation.
1 Do not allow a null, or empty, value.
2 Do not allow a zero value.
4 Do not allow a negative value.

default

An optional default value.

max

An optional maximum allowable value.

min

An optional minimum allowable value.

Returns

An integer, if successful.

nil on cancel or on error

Example

Command: (dos_getint "Copies" "Enter number of copies")
2

Clone this wiki locally