CheckUserAreaAccess Method

Checks a user's access to a security area.

Syntax

object.CheckUserAreaAcess(bstrUserID, bstrSecurityArea, pbAccess, [bQuiet])

Properties

The CheckUserAreaAccess method syntax has these parts:

Part

Description

object

An object expression that evaluates to an object in the Applies To list.

bstrUserID

String. The user ID for the user.

bstrSecurityArea

String. Name of the security area to check.

pbAccess

Boolean. Returns True if the user has access to the specified security area, or False if the user does not have access.

bQuiet

Boolean. (Optional). When set to True, you prevent security violation messages from being sent to the alarm system when this access check fails. When set to False, iFIX sends a security violation message. False is the default value.

Return Value

This method returns HRESULT. If the HRESULT is a value other than S_OK, VBA generates an error. You can handle this error using the On Error Statement You can find out more information about the error by using Err Object.

 

Example

Applies To