Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

FWGetIdTask

FWGetIdTask()

Gets the task identifier in the new Schedule.

FWGetIdTaskAdvPL
01 · OVERVIEW

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.)

02 · SYNTAX

Syntax

FWGetIdTask()

Return value

Identifier combining schedule and task code; formal type is not tabulated.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed426()
    // Evaluate only in Schedule with SchedDef defined.
    Local bIdentify := {|| FWGetIdTask()}
Return Nil
Expected result

Prepared block; no task queried or created. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • 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.

Related content

REFERENCES
  1. TOTVS. FWGetIdTask. TDN. Accessed on 2026-10-27.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha