cUsedX3_USADO content.
AdvPL GuideX3Uso(cUsed,[nModule]) -> lUsedChecks field usage availability in a module.
The manual has X3Uso accept X3_USADO content plus optional module number, defaulting to the current module. Its Boolean return is not user authorization. Do not pass the field name instead of content. This adaptation receives content through a block rather than copying the unchecked lookup from the community sample. (Sources: refs. 1–2.)
X3Uso(cUsed,[nModule]) -> lUsedcUsedX3_USADO content.
nModuleModule; current by default.
Logical in the historical reference.
#Include "Protheus.ch"
User Function Ed727()
// X3_USADO content; current module when omitted.
Local bUsed := {|cUsed| X3Uso(cUsed)}
ConOut(ValType(bUsed))
Return NilCreates block B without deciding usage for a specific field. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
© 2026 Usina.BR. All rights reserved. TOTVS, Protheus, Microsiga and their respective logos are trademarks of their owners. AdvPL Guide is independent and uses limited, attributed excerpts justified by educational purposes. See the Terms of Use. Terms of Use
Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.