B&B Electronics VFG3000 - Manual User Manual
Page 295

F
UNCTION
R
EFERENCE
H
AS
A
CCESS
(
RIGHTS
)
R
EVISION
1
P
AGE
279
H
AS
A
CCESS
(
RIGHTS
)
A
RGUMENT
T
YPE
D
ESCRIPTION
rights
int
The required access rights.
D
ESCRIPTION
Returns a value of true or false depending on whether the current user has access rights
defined by the
rights
parameter. This parameter comprises a bit-mask representing the
various user-defined rights, with bit 0 (ie. the bit with a value of 0x01) representing User
Right 1, bit 1 (ie. the bit with a value of 0x02) representing User Right 2 and so on. The
function is typically used in programs that perform a number of actions that might be subject
to security, and that might otherwise not occur.
F
UNCTION
T
YPE
This function is passive.
R
ETURN
T
YPE
int.
E
XAMPLE
if( HasAccess(1)) {
Data1 := 0;
Data2 := 0;
Data3 := 0;
}