Indicates whether the connected user is assigned to a role.
<HsvSecurityAccess>.IsConnectedUserInRole lRoleID, pbUserIsInRole
Long (ByVal). The ID of the role to be tested. For a list of valid role IDs, see Role ID Constants. | |
Boolean. Returns TRUE if the connected user is assigned to the role, FALSE otherwise. |
This example tests whether the connected user is assigned to the Load System role. If IsConnectedUserInRole returns TRUE, any code placed within the If structure would be executed.