Node_constant

Homepage

Returns (or sets) a Class constant (static value).

returnValue := Node_constant(variable, setValue = "")

Parameters

variable The name of the variable to use for the current operation.
setValue The value to set for the specified variable. If setValue = "", then the current value will be returned (the variable's value will not be modified).

Return Value

The current value for the specified variable (before the new one is set, if applicable).

If the specified variable doesn't exist, the empty string is returned.

Remarks

The variables MUST be declared as static values before use - you cannot dynamically create them.

Declare the read/write values in "ReadWriteVariables" and the read-only values in "ReadOnlyVariables"

Note: the latest version of the Node_constant function doesn't require a read-only value to be specified in both lists.

Related

Class_constant

Node

Examples

;the Browser Class stores a static copy for each supported browser.

;stores the Browser object for firefox into <UsedBrowser>
UsedBrowser := Browser_constant("firefox")

;stores the Browser object for Opera@USB into <UsedBrowser>
UsedBrowser := Browser_constant("Opera@USB")

Homepage