In the @ON statement, it is also possible to specify the search term via a line number, a line number variable or a string variable (in each case a column specification is possible). The line with the specified line number or string variable contains the search term.
Examples
@CREATE 6 : 'AB*C//D'
@ON 2-3 PRINT PATTERN 6:2-5:
The search term is therefore 'B*C/'
.
@CREATE 1 : 'ABCDEFG'
@SET #L3 = 1
@ON 2-3 PRINT PATTERN #L3:4-7:
The search term is therefore 'DEFG'.
@SET #S0 = 'ABCD*E//F'
@ON & PRINT PATTERN #S0:3-8:
The search term is therefore 'CD*E//'
.
In the case of an indirect specification, the search term is treated as if it were enclosed in apostrophes. The search for text delimiter characters in search ranges is therefore not possible in the case of indirect entry.