int GetUserRightControl(string tag);
Checks if the current user has the right to operate the given tag.
Parameters
tag - The name of the tag. It can be the name of AI, AO, DI, DO, or ST tags.
Return Value
Returns 1 if the current user has the right to operate the given tag, otherwise returns 0.
Note
You can set the rights for each tag in the monitoring program's Configuration Menu | User.
Example 1
flag = @GetUserRightControl("AI_TAG");
Description: Returns 1 if the current user has the right to operate AI_TAG, otherwise returns 0.
Related Helps