Purpose
Determines whether the user is in the specified privilege group.
If the user is not in the privilege group, or the privilege group specified does not exist, the function returns FALSE. If the user is in the privilege group specified, the function returns TRUE.
Syntax
FCUserPrivGroup (PrivilegeGroup)
Example
Sub Main()
If FCUserPrivGroup("Administrators") Then
Print "You are a member of the 'Administrators' privilege group."
Else
Print "You are not a member of the 'Administrators' privilege group."
Print "Access Denied"
End 'terminate the program
End If
End Sub
|