![]() |
*ON Define Events for Latent Conditions
*ON %IN= { key | srch } CONTINUE | SKIP .label
key Key designation: K1, K3, ... , K23 / F1, ... , F20 / DUE1 / DUE2
This variation of the %IN condition will be satisfied after the user has pressed the specified data transfer key. The procedure will be restarted automatically, either at the point of interruption (CONTINUE), or at the specifed label (SKIP .label).
srch single or multiple search argument in the form 'string' | L'string' | A'string' | X'string'.
It should be noted when entering a search string in the form 'string' that lowercase letters will be converted to uppercase.
Entering L'string' will retain the letters in their original case, with no conversion taking place.
If A'string' (Any) is specified, the case of both the search string entered, as well as the text being searched, is irrelevant, with all text being converted to uppercase before the comparison.
Multiple search arguments can be linked by the + (AND) / , (OR) / * (Wildcard) operators.
The %IN condition is fulfilled when the search string(s) is/are contained within the input entered by the user. The procedure will be restarted at the point of interruption (CONTINUE), or a branch made to the specified label. In addition, a pointer, %PTR, will be set to the end of the search string that occurred last. The pointer can be used to assign a substring from the user input to a procedure variable. For further information, see page 19-.
For a full description of search conditions, see pages 8-/8-.
*ON %IN The last defined *ON %IN condition is reactivated.
An example of the ON %IN statement can be found on page 19-.