EasyManua.ls Logo

Husky Hunter - Page 220

Husky Hunter
499 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
BASIC FUNCTIONS
SECTION 5. 10
INPUT USING
5. 10. 8 Function INPUT USING obtains a line of data from HUNTER's keyboard
Syntax
and validates this data with a user defined mask.
INPUT USING (validation strir,g, [min,max]) prompt string,
variable name.
INPUT USING (validation string, [min,max ,El) variable name
where min, max are numeric expressions and
E is a special
command.
Examples INPUT USING (
11
A999",2,4)S$
Causes
? prompt
VER.V09F
A minimum of 2 characters must be entered up to a maximum
of 4.
The inputs are stored in string expression S$. The first
entry must be a letter in the range A-Z, the remaining
entries must be numbers in the range 0-9.
INPUT USING ("A 999
11
,,
4 )S$
The same as above, but minimum defaults to
1.
INPUT USING (
11
A999", 2, )S$
A minimum entry of 2 and maximum defaults to 95, Any
entries after the fourth are validated against WILD.
INPUT USING (
11
A999")S$
Minimum and maximum default to 1 and 95 respectively.
INPUT USING (M$,3,6)S$
A minimum of 3 and up to a maximum of 6 entries are
allowed, The entries are validated against the string
expression M$. The user will receive a
'?' prompt.
PAGE 5 - 51