CurrentUserHasCode method
Returns True if the current user has the specified security code. If more than one code is specified, True is returned if the user has any one of the codes.
Codes is a string of one or more characters between A and P, for example, B or ABCP, or the asterisk character (*), which indicates that the user has access to all security codes.
Syntax
bHasCode = Application
.CurrentUserHasCode
(Codes
)where
bHasCode
– is a Boolean variable that will be set to True if the current user has the specified security code.Application
– is the name of a FactoryTalk View SE
Client Application object or an expression that evaluates to a FactoryTalk View SE
Client Application object.Codes
– is a string that specifies the security codes the current user has.Remarks
When testing the animation in displays in the Graphic Display editor, calls to this method raise an error with Err.Number equal to gfxErrorTestAnimation.
The CurrentUserHasCode method is not supported by FactoryTalk View's Derived Tags and Events functionality.
Provide Feedback