等价于LISP中getint函数的对话框. ADSRX允许的16位单精度整数范围是+32767到-32768.
(dos_getint title prompt [flags [default [max [min]]]])
title
窗口标题.
prompt
提示消息.
flags
验证输入的位码整数(可选). 可用位码如下:
0 |
无验证. |
1 |
不允许空. |
2 |
不允许0. |
4 |
不允许负数. |
default
默认值(可选).
max
允许的最大值(可选).
min
允许的最小值(可选).
如果成功, 返回整数.
nil 取消或出错时.
Command: (dos_getint "Copies" "Enter number of copies")
2