PickBASIC / FlashBASIC
inputtrap...gosub statement
.mdThe inputtrap...gosub statement, using the str.exp, sets up an automatic computed gosub based on the next input @ statement data. The position of the character in the string expression corresponds to the position of the statement label in the list. This acts as a trap that causes a gosub on all subsequent input @ statements.
Syntax
inputtrap str.exp gosub statement.label{,statement.label...}
Parameter(s)
| str.exp | An expression evaluating to characters to be searched for in the input. |
| statement.label | statement label to be branched to. |
Description
Upon return from a gosub specification, execution continues at the statement following the inputtrap statement, not the input @ statement.
inputtrap must precede its associated input @ statement. Only one inputtrap statement can be active at any time.