cIdKey according to PswOrder.
AdvPL GuidePswSeek(cId,[lUsuario]) -> lFoundPositions a legacy user or group search
Searches using the order selected by PswOrder. The manual uses .T. for users, the historical default, and .F. for groups. Names and IDs are not interchangeable keys without the matching order. Read PswID or PswRet only after successful Boolean return. The uninvoked block assumes the caller already selected the order. (Sources: refs. 1–1.)
PswSeek(cId,[lUsuario]) -> lFoundcIdKey according to PswOrder.
lUsuarioUser .T.; group .F.; historical default .T.
Boolean: .T. if found and positioned.
#Include "Protheus.ch"
User Function Ed606()
// Uninvoked block: requires authorized context and credentials.
Local bRead := {|cId| PswSeek(cId,.T.)}
ConOut(ValType(bRead))
Return NilCreates a block (type B), without querying, authenticating or changing users. 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.