[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: The reason



PureBytes Links

Trading Reference Links




The 
error simply means you have called a variable before you named it. Here is an 
example....
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>Correct
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>x=c>ref(c,-1);
<FONT face=Arial color=#0000ff 
size=2>y=x*2;
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>Incorrect
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>y=x*2;
<FONT face=Arial color=#0000ff 
size=2>x=c>ref(c,-1);
<FONT face=Arial color=#0000ff 
size=2> 
In the 
2nd version AB will error because it does not know what x is so it can not 
calculate x*2.......
 
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: m_nedev 
[mailto:m_nedev@xxxxxxxxx]Sent: Friday, February 27, 2004 4:22 
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
Amibroker errorDoes anyone know how to initalise a 
variable?i.e. get rid of the error "Variable used without having been 
initialized"thanksSend BUG REPORTS 
to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
suggest@xxxxxxxxxxxxx-----------------------------------------Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 



Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html








Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/ 
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.