Returns the current task's depth.
Syntax:
TDepth()
Parameters:
None
Returns:
A number representing the current task's depth in the task execution hierarchy, but not including the Main Program.
Example:
TDepth( ) returns 1 if called from the root task.
See also:
Level
The Online and Rich Client Samples projects (program TF03 and RTF03)