Onerror onerrorgoto, Onerror, Onerrorgoto – Ocean Optics Jaz Scripting Language and Scripting Engine User Manual
Page 38

6: Functions Reference
30
013-RD000-000-12- 201010
Arguments
Name
Type
Special Considerations
ButtonSelection
INT_16
Variable holding user's selection and
-1 if timed out or some other
selection activity was done.
If TimeToWait is zero and a button
press occurred the keycode value
+1000 will be returned as the
ButtonSelection.
TimeToWait
INT_16
The number of seconds the script
should wait for user input.
If zero is sent as the TimeToWait
then the command will return -1 until
a button press has occurred and
then the keycode value +1000 will
be returned.
Intent:
To interact with the user via the Jaz menu screen and the direction (arrow) buttons.
OnError
Syntax: OnError(TextMessage) GUI Function
Arguments
Name
Type
Special Considerations
TextMessage
Text N
OnErrorGoto
Syntax:
OnErrorGoTo Label
OnErrorGoTo Procedure
OnErrorGoTo HALT