Resume Statement

Continues a task which was suspended by the Halt instruction.

Syntax
Resume { taskIdentifier | All }​

Parameters

taskIdentifier
Specify the task name or task number as an integer value or an expression. A task name is the function name used in an Xqt statement or a function started from the Run window or Operator window.
Task number (integer) range is as follows:

  • Normal tasks: 1 to 32
  • Background task: 65 to 80
  • Trap tasks: 257 to 267
All
Specify that all tasks should be resumed.

Description
Resume continues the execution of the tasks suspended by the Halt instruction.

See Also
Halt, Quit, Xqt

Resume Statement Example
This shows the use of Resume instruction after the Halt instruction.

Function main
   Xqt 2, flicker    'Execute flicker as task 2

   Do
      Wait 3         'Allow flicker to execute for 3 seconds
      Halt flicker   'Halt the flicker task
      Wait 3
      Resume flicker 'Resume the flicker task
   Loop
Fend

Function flicker
   Do
      On 1
      Wait 0.2
      Off 1
      Wait 0.2
   Loop
Fend