ThreadList

(Engine-Level Function)

Description: Returns a two dimensional array containing the name and statement last executed by each VTScada thread.
Returns: Array
Usage: Script Only.
Function Groups: Basic Module,  Software and Hardware
Related to: Thread | ThreadHistory | ThreadIdle | ThreadName |
Format: ThreadList()
Parameters:

None

Comments: This function returns an allocated array such that the first row of the array (array[0][n]) contains the name of each thread, while the second row (array[1][n]) contains the statement most recently executed statement in that thread. The threads are ordered in the array in chronological order with the most recently started thread is at the beginning of the array.

Example:

If MatchKeys(1, "thread");
[
  allthreads = ThreadList();
]