VarAttributes

(Engine-Level Function)

Description: 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.
Function Groups: Compilation and On-Line Modifications,  Variable
Related to:
Format: VarAttributes(Variable)
Parameters:  
Variable
Required. 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

(See: Bitwise Parameters & Operations)