cFuncNameFunction name to locate.
AdvPL GuideFWIsInCallStack(cFuncName) --> lRetChecks whether a function is in the call stack.
Returns a logical result for the supplied name. It depends on the current call chain rather than user identity, permissions or transaction state. The callback allows testing an owned-source name without treating routine names as authorization. Applications must account for indirect calls and changed flows. (Sources: refs. 1–1.)
FWIsInCallStack(cFuncName) --> lRetcFuncNameFunction name to locate.
True when the function is in the stack.
#Include "Protheus.ch"
User Function Ed431()
// Receives the expected name without inferring authorization.
Local bCheck := {|cRoutine| FWIsInCallStack(cRoutine)}
Return NilPrepared block; result depends on the stack at evaluation. 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.