<< Prev        Next >>

ID : 6757

Status

Function

To return the program status.

Syntax

Status(task)

Guaranteed Entry

Task
Designate a task. Refer to "How to Designate a Task."

Return Value

Status of a task designated in task is returned by integer type data.

Description

Status of a task designated in task is returned by integer type data.

For return value, refer to "Task Status."

Attention

If a specified task is not found, "81500029: Failed to find a file." is displayed.

Example

'!TITLE "Acquiring Program Status"
' Acquisition of program status
Sub Sample_Status

  Dim aaa As Integer

  ' Acquisition of program status
  aaa = Status( Status_Sample2 )

  ' Display the program status on the message output window
  PrintDbg aaa
  
  Dim aaa As Integer
  Dim TaskName As String
  For n = 1 to 10
  	TaskName = "Pro" & n
  	PrintDbg TaskName & ":" & Status(TaskName)
  Next

End Sub

ID : 6757

<< Prev        Next >>