Equinox Online Help - Language Reference - A to Z

Home

ChangeActivity

Applies to
SyntaxChangeActivity TaskID
Action
Scope
Notes

This statement changes the edit focus to the activity identified by the TaskID parameter.

SysError is nonzero if the task is not currently running.

CategoryFlow Control, Multiple Activity Handling
See Also ExecuteTaskHandle, ExecuteTaskParent
Example

Variables

int viCurrenttaskhandle
int viParenttaskHandle

At Start Of Task

viParenttaskhandle = ExecuteTaskParent
viCurrenttaskhandle = ExecuteTaskHandle

lwMyTaskID = ExecuteTaskHandle

Button

ChangeActivity viParentTaskHandle
print "Syserror = ", Syserror