lAlfaOrder by name when .T.; by code when .F. (default).
AdvPL GuideAllGroups( [lAlfa] ) --> aGroupsQueries the historical user-group structure.
The consulted documentation covers releases 5.07 through 7.10 and returns a multidimensional group array. lAlfa selects ordering by name (.T.) or code (.F., default); it does not authorize changes. The historical structure contains names, schedules and access/printing settings. The example counts groups without logging complete records. This is a legacy reference, not proof of current-release support or equivalence to other security APIs. (TOTVS, n.d., ref. 1)
AllGroups( [lAlfa] ) --> aGroupslAlfaOrder by name when .T.; by code when .F. (default).
Multidimensional array under the historical documentation; verify the environment layout.
#Include "Protheus.ch"
User Function EdAllgrou()
// Requires a compatible legacy environment and authorized session.
Local aGroups := AllGroups(.F.)
If ValType(aGroups) == "A"
// Count only; do not dump access settings into logs.
ConOut(cValToChar(Len(aGroups)))
EndIf
Return NilProposes counting returned records in a compatible environment; no group is changed. 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.