PureBytes Links
Trading Reference Links
|
Loops
are best analyzed using DebugView, placing a few _Trace() in the code will make
it crystal clear what is happening and will asure that you completely understand
your code. If you haven't done so have a look at DebugView, it is well worth
it.
<FONT
face=Arial color=#0000ff size=2>
best
regards,
<FONT face=Arial color=#0000ff
size=2>herman
<FONT face=Tahoma
size=2>-----Original Message-----From: k_binder_
[mailto:k_binder_@xxxxxxxxx]Sent: Saturday, August 07, 2004 10:41
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker]
while/for loop compiler error 3 questionOK, this
compiler/interpreter behaviour is confusing me:here is a part of my
code that is generating compile Error 3, "for, while, if statement can
only use boolean or numeric variables" etc.The strange part is that
the for loop is ok but the while generates this error as shown AND also if
I comment the (exitCond == False) part and uncomment the (n < BarCount)
part. (error goes away if I change BarCount to 10, e.g., with (exitCond ==
False) commented out).2nd Question has to do with being able to change
i in the middle of the for loop, as I do in the last statement. Is this
possible or will i continue from where it left off????for (i =
Length+1; i < BarCount;
i++){
exitCond =
False;
n =
i;
inTrade = False;
while ((exitCond == False))// AND (n <
BarCount))
{
n = n +
1;
}//while
i = n;}//
forCheck AmiBroker web page at:<A
href="">http://www.amibroker.com/Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Sponsor
ADVERTISEMENT
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.
|