Function ThreadObject() Foundation

Retrieves the Thread object of the current thread.

Syntax
ThreadObject() --> oThread
Return

The function returns the Thread object which currently executes program code.

Description

The function ThreadObject() is used to retrieve the current Thread object when multiple threads are running. This is especially useful if the same user-defined function is executed multiple times and simultaneously in different threads. The function can also be used to retrieve the implicit Thread object which executes the Main procedure at program startup.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.