FWGetIdTask
FWGetIdTask()Gets the task identifier in the new Schedule.
Overview
The contract requires Static Function SchedDef in the source. For special routines without it, documentation directs reading the final received-array element instead. A task ID is not ThreadId and a name alone validates no scheduling context. The callback is not evaluated because this example supplies no complete Schedule definition. (Sources: refs. 1–1.)
Syntax
FWGetIdTask()Return value
Identifier combining schedule and task code; formal type is not tabulated.
Commented example
#Include "Protheus.ch"
User Function Ed426()
// Evaluate only in Schedule with SchedDef defined.
Local bIdentify := {|| FWGetIdTask()}
Return NilPrepared block; no task queried or created. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
- Check context and return before integration; the example does not replace a complete routine.
- Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.