VarGet
- gets the value of dynamic variable

Miscellaneous functions
(AmiBroker 4.60)


SYNTAX VarGet( ''varname'' )
RETURNS ARRAY or NUMBER
FUNCTION Gets the value of dynamic variable.
Returns the NUMBER or ARRAY depending on type of underlying variable.

Dynamic variables are variables that are named dynamically, typically by creating a variable name from a static part and a variable part. For example, the following example dynamically constructs the variable name from a variable prefix and a static suffix. Dynamic variables are always global.

EXAMPLE for( i = 1; i < 10; i++ )
{
Plot( VarGet( "C"+i ), "C"+i, colorRed );
}
SEE ALSO VarSet() function , VarGetText() function , VarSetText() function

References:

The VarGet function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.