Used to get the rights granted to a control, a window, a page or a report.
nState is int = gpwGetRights("MyWindow", "MyControl")
<Result> = gpwGetRights(<Parent element> [, <Control name> [, <User> [, <Group>]]])
<Result>: Integer constant
Type of element:
|gpwStateDefault||The control has the "Default" status.|
|gpwStateGrayed||The control is grayed.|
|gpwStateInactive||The control is inactive.|
|gpwStateInvisible||The control is invisible.|
<Parent element>: Character string
Name of the window, page or report containing the control.
<Control name>: Optional character string
Name of the control to be used.
<User>: Optional character string
Name of the user whose rights are requested.
<Group>: Optional boolean
- True to find the rights granted to the group,
- False to find the rights granted to a user.