:input
# Input field in box layout ^
An input field is denoted by a ~$~-sign followed by the name of the
variable that will return the input string.
Example: ~[$ city ]~
The input length is determined by the space including the brackets.
A different length (longer or shorter) may be specified, as well as
additional options:
~U~ force upper case
~P~ password entry mode
~!~ input required (unless box is closed by ESC)
Example: ~[$ name,40,U! ]~
If the input length exceeds the visible field size,
the string will be shifted, if necessary.
Note that it is possible to make a box with
an input field only (without buttons).
In this case ENTER will close the box.
::
:input-var
# Input variable ^
To handle input, you must tell WBAT to return variables, using the
construct:
~CALL W.BAT box ....~
For details see ~Control~ section in main menu.
You may assign an initial/default string to the variable, before the
box is displayed. ~Be sure to clear the variable, if you want an empty
input field.~
Note: WBAT will remove trailing spaces from the input string.
:: |
|