Using VPLUS: An Introduction to Forms Design (32209-90004)
4-14
Figure 4-8. Field Menu for PHONE in the ORDER Form
A good illustration that uses some of the pattern characters is the match
pattern for a telephone number.
Action
Press FIELD TOGGLE. Type MATCH [(ddd)]b*ddd-dddd in the lower menu, as
shown in Figure 4-8. Press ENTER.
The brackets surrounding the area code allow it to be omitted. The
asterisk (*) after the letter b allows zero spaces or as many as you
want. Table 4-5 illustrates some other examples of pattern choices.
Table 4-5. Pattern Choices
--------------------------------------------------------------------------------------------
| | |
| Pattern | Meaning |
| | |
--------------------------------------------------------------------------------------------
| | |
| {A,B,!a,!b} | Required grouping - Entered character corresponding to this |
| | pattern must be A, B, a, or b. |
| | |
| [A,B,!a,!b] | Optional grouping - No character need be specified in this |
| | position or, if entered, it must be A, B, a, or b. |
| | |
| d+ | Required repetition - At least one digit must be entered, and as |
| | many more digits as desired may be entered. |
| | |
| d* | Optional repetition - No digit need be entered in this position, |
| | or as many digits as desired may be entered. |
| | |
| {A,B,!a,!b}+ | Any of the enclosed characters can each be repeated as many |
| | times as desired - for example: BBBBaab. |
| | |
| {A,B,!a,!b}* | No character need be specified, or any of the enclosed |
| | characters can be repeated. |
--------------------------------------------------------------------------------------------