Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

SetThreadValue

SetThreadValue — unconfirmed contract

Records a reference whose contract still needs confirmation.

SetThreadValueAdvPL
01 · OVERVIEW

Overview

The queue associates this item with TDN’s Diversos index. No readable detailed contract or useful AdvPL GitHub implementation was obtained to confirm arguments, return or value lifetime. The name alone establishes neither per-thread storage nor inter-thread communication. This record remains under review without a speculative call. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

SetThreadValue — unconfirmed contract

Return value

Unconfirmed.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed662()
    // Editorial record: do not invoke an unknown signature.
    Local aPending := {"arguments","return","scope","lifetime"}
    ConOut(Len(aPending))
Return Nil
Expected result

Displays 4 research questions without calling SetThreadValue. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Obtain a technical contract or traceable caller before defining semantics. An unsuccessful search does not prove API absence.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. TOTVS. Diversos. Índice associado à pauta; contrato específico não obtido. Accessed on 2026-10-28.
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