Trying to use Global variables defined withing a
function.
When I print the variable to the Interpretation
Window, I get error saying:
Variable "Var_Name" used without having been
initialized.
Code below:
function VarTest()
{
global Var_X;
Var_X=5;
}
//Print Var_X in Interpretation Window
"Var_X " + WriteVal(Var_X,1.0);
Thanks
Ara
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
YAHOO! GROUPS LINKS
|