lAllTrue includes all; false lists accessible entries.
AdvPL GuideFWEmpLoad([lAll]) --> aReturnLists companies and branches under user access.
True lAll requests every company; false limits results to logged-in user access. The function neither switches active company nor grants rights. The page lists company code/name and branch code/name in the result. The example explicitly passes false and shows only the count rather than organizational data. (Sources: refs. 1–1.)
FWEmpLoad([lAll]) --> aReturnlAllTrue includes all; false lists accessible entries.
Array with company and branch data.
#Include "Protheus.ch"
User Function Ed419()
// Requires authenticated context; does not broaden lookup.
ConOut(cValToChar(Len(FWEmpLoad(.F.))))
Return NilCount depends on context permissions. 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.