Call Subtask (Magic xpa 4.x)
A subtask is similar to a program used to invoke subroutines. The differences between called programs and subtasks are:
-
Programs share data through passed arguments, while subtasks inherit access to all their ancestor variables automatically.
-
Programs are reusable, while subtasks are permanently attached to their parent task and cannot be called by other tasks.
-
Subtasks do not have return values.
You can use the Call Subtask operation to:
-
Invoke subroutines
-
Implement one-to-many relationships
-
Implement pick list windows
-
Implement any type of pop-up windows
|
When working with a Call Subtask operation, you can easily jump to the subtask by opening the Options menu and selecting Go to Object. Once you are done, you can return to the Call Subtask operation by selecting Options > Return to Object.
|
The Call Subtask properties are:
Task ID
Arguments
Form
Lock
Sync Data
Condition (Cnd)
The following properties are available only in Route event:
Route name
Route parameters
Since version: 4.0
Call Operations
Call Properties