The Var object represents an individual user or script-defined variable. Individual Var objects can be accessed or enumerated from the Vars object.
Property Name |
Return Type |
Description |
---|---|---|
<default value> |
variant |
The default value of the Var object returns the value
of the variable itself, with one exception. If the Var
object is being accessed as part of an enumeration of the Vars collection, the
default value returns the variable name.
Versus:
|
name |
string |
Returns the name of the variable. You cannot change the name of a variable once it has been assigned - instead, delete the variable from its collection and add a new one. |
persist |
bool |
Returns True if the variable is persistent (saved) or False if not. You can set this property to change the persistence state. |
value |
variant |
Returns the value of the variable. You can set this property to change
the value of the variable. |
Method Name |
Arguments |
Return Type |
Description |
---|---|---|---|
Delete |
none |
none |
Deletes this variable from its parent collection. |