PSC PT Program Generator User Manual
Page 155

Sample Verification Methods
User’s Guide
143
Figure 115. Tip05.scr Verifies Input Size
In the example, the
Input
node named
Store
puts the number of characters
into a register using the size to register option. Be sure to use different registers
to store the size and the input.
The
Verify
node named
Size
then verifies that the input is between
6 and 10
characters long. If the size is incorrect, the display named
Wrong
prompts the
user to try again. If the size is correct, the scan is copied to a file and the pro-
gram continues.
Display: SCAN
Instructs the user to scan a bar code.
Input: STORE
Stores the input code in the default register and (with the
Size to Reg-
ister
option) stores the character length of the code in a register
named
Input Size
(refer to
).
2342.book Page 143 Thursday, July 22, 2004 8:35 AM