
Sample Verification Methods
Figure 115. Tip05.scr Verifies Input Size
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 Register option) stores the character length of the code in a register named Input Size (refer to Figure 116).
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 program continues.
User’s Guide | 143 |