PureBytes Links
Trading Reference Links
|
Another way to think about think about it
that an Amibroker line of Code always looks at the lines of code above, and
never looks at any lines of code located below itself. Ron D
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Jayson
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Saturday, February 28, 2004 11:26
AM
Subject: RE: [amibroker] Amibroker
error
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@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.
|