Equinox Online Help - Language Reference - A to Z
ExecuteGetStatus |
|
---|---|
Applies to | |
Syntax | ExecuteGetStatus TaskHandle |
Action | [Statement] Detects whether a remotely executed task has completed. |
Scope | Usable anywhere |
Notes | This statement checks the status of a previously executed remote task, and returns the system workareas SysError and SysResult. The parameter TaskHandle should contain the value which was returned in SysReply after ExecuteSetMode and Execute statements were used to execute a remote task without waiting. If the task handle is invalid or no status information exists, SysError will contain a nonzero value, and SysResult will contain -4. Otherwise SysError will contain zero and SysResult will contain one of the following:
|
Category | Remote task handling |
See Also | Execute, ExecuteFalTorPan, ExecuteGetStatus, ExecuteMindMeld, ExecuteSetDataIn, ExecuteSetData, ExecuteSetDataOut, ExecuteSetMode |
Example | These form methods allow a query to run in the background while the operator watches the records being filled up in the query index. The Button method executes the query and selects the index which will be filled by the remote task. The NotBusy method checks that a query is running, and that no check has been made for at least a second. If so it uses the ExecuteGetStatus call to see if the query has finished. | Variables method |