User Task Present

C Definition

long dms_UserTaskPresent(long TaskNumber)

Pascal Definition

procedure dms_UserTaskPresent(TaskNumber:longint);

Description

If a controller resident task is running this command returns true. If it is not running it returns false. This command is often used to monitor a task to know when it has finished. The parameter is a number corresponding to the user task number in the name UserTask1, UserTask2, etc.

Escapes

The Task Present command does not generate any escapes.

Note that the EscapeResult parameter must be preset to 0 before making the call or the routine will not run

Related Topics

Yield
Abort Task
Begin Task