<< Prev        Next >>

ID : 3995

SuspendAll

Function

Suspend all tasks other than Supervisory tasks or Panel screen tasks.

Syntax

SuspendAll[ Synchronizing flag]

Guaranteed Entry

Synchronizing flag
Specify whether the processing is executed synchronously by integer type data. Specify 0, 1, -1 as shown table below. This is omittable. This should be "0" if it is omitted.
flag Description
0, OFF, or False Asynchronous processing (Execute next process without waiting the suspend of all tasks.)
1 (or ON), -1 (or True) Synchronous processing (Execute next processing after all tasks are suspended.)

Description

All running tasks other than Supervisory tasks or Panel screen tasks are suspended and the program reaches the stop-state. All tasks go into "continue stop" status in which they can be activated from the stop step.

Related Terms

Kill, KillAll, Run, Suspend, Halt, Hold, Task Status, Hold Status, Continue Stop, ContinueAll

Attention

After SuspendAll is executed, it may take some time until all running tasks are suspended. To perform Run right after SuspendAll, be sure to ensure that all running tasks are suspended in advance.

Example

'!TITLE "Stopping All Programs Other Than Supervisory Tasks"
' Stop all programs
Sub Sample_SuspendAll

  Dim aaa As Integer

  ' Start up another program in parallel
  Run SuspendAll_Sample2

  For aaa = 0 To 30

    ' Display 0-30 count-up as processing of invoker
    PrintDbg "Call Sample_SuspendAll " & aaa

  Next

  ' Suspend all programs currently active
  SuspendAll

End Sub

ID : 3995

<< Prev        Next >>