Denso BHT-200QW Especificaciones Pagina 246

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 587
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 245
238
____________________________________________________________________
I/O statement
ON KEY…GOSUB
Specifies an event-handling routine for keystroke interrupt.
____________________________________________________________________
Syntax:
Syntax:Syntax:
Syntax:
ON KEY (keynumber) GOSUB label
Parameter:
Parameter:Parameter:
Parameter:
keynumber
A numeric expression which returns a value from 1 to 31 and 33 to 38.
Description:
Description:Description:
Description:
According to label, ON KEY ..GOSUB specifies the first line of an event-handling routine
to be invoked if a function key specified by keynumber is pressed. (Refer to Appendix
E, "Key Number Assignment on the Keyboard.")
ON KEY ..GOSUB specifies only the location of an event-handling routine but does not
enable keystroke trapping. It is KEY ON statement that enables keystroke trapping.
(Refer to KEY ON and KEY OFF.)
Specification of zero (0) to label disables keystroke trapping.
If a keystroke trap occurs, the Interpreter automatically executes KEY OFF statement for
the pressed function key before passing control to an event-handling rou-tine specified
by label in ON KEY ..GOSUB statement. This prevents a same event-handling routine
from becoming invoked again by pressing a same function key during execution of the
routine until the current event-handling routine is completed by issuing a RETURN
statement.
When control returns from the event-handling routine by a RETURN statement, the
Interpreter automatically executes KEY ON statement.
If it is not necessary to resume keystroke trapping, you describe a KEY OFF statement
in the event-handling routine.
If you issue more than one ON KEY ..GOSUB statement specifying a same keynumber,
the last statement takes effect.
You can nest GOSUB statements to a maximum of 10 levels.
• When using the ON KEY ..GOSUB statement together with block-structured statements
(DEF FN ..END DEF, FOR ..NEXT, FUNCTION ..END FUNCTION,
IF ..THEN ..ELSE ..END IF, SELECT ..CASE ..END SELECT, SUB ..END SUB
and WHILE ..WEND), you can nest them to a maximum of 30 levels.
Specifying 32 to keynumber will be ignored.
Vista de pagina 245
1 2 ... 241 242 243 244 245 246 247 248 249 250 251 ... 586 587

Comentarios a estos manuales

Sin comentarios