Description: This function returns the attributes bit field of a variable.
Warning: This function should be used by advanced users only.
Returns: Numeric
Usage: Script or Steady State
Format: VarAttributes(Variable)
Parameters: Variable { Variable } { required } { no default: }
Any variable value expression.
Comments: The return value indicates the attributes of the variable by setting certain bits in the value as follows:
|
Return Value |
Bit No. |
Attribute |
|
1 |
0 |
Array |
|
2 |
1 |
Shared |
|
4 |
2 |
Persistent |
|
8 |
3 |
Module |
|
16 |
4 |
Parameter |
|
32 |
5 |
Constant |
|
64 |
6 |
<obsolete> |
|
128 |
7 |
<obsolete> |
|
256 |
8 |
Temporary |
|
512 |
9 |
Protected |