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

Re: [amibroker] AFL - for loops



PureBytes Links

Trading Reference Links




<FONT 
size=1>
VParray = 0; 
vparray[0]=<FONT 
color=#ff00ff size=1>0;<FONT color=#800000 
size=1>
for (i=<FONT color=#ff00ff 
size=1>0; i<<FONT color=#ff00ff 
size=1>10; i++)
{
a=0
}
 
I had actually tried this with a dummy action of a=0 
but made no difference.
Have not initialized any arrays before... but that 
seems to make no difference either
It seems the empty loop should work fine... but 
getting a syntax error which is strange!
Ara
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Jayson 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Monday, December 15, 2003 10:54 
  AM
  Subject: RE: [amibroker] AFL - for 
  loops
  
  <FONT face=Arial color=#0000ff 
  size=2>Ara,
  have 
  you initialized the array?
  <FONT face=Arial color=#0000ff 
  size=2> 
  <FONT face=Arial color=#0000ff 
  size=2>x=0;
  <FONT face=Arial color=#0000ff 
  size=2> 
  then 
  you have not told AB what to do when <FONT 
  color=#000000>(i=0; 
  i<10; 
  i++)   is true.... You need 
  instructions inside the parens..
   
  Regards, 
  Jayson 
  <FONT face=Tahoma 
  size=2>-----Original Message-----From: Ara Kaloustian 
  [mailto:ara1@xxxxxxxxxx]Sent: Monday, December 15, 2003 1:40 
  PMTo: Ami-MainSubject: [amibroker] AFL - for 
  loops
  
  for (i=<FONT color=#ff00ff 
  size=1>0; i<<FONT color=#ff00ff 
  size=1>10; i++)
  {
  }
   
  Getting a syntax error for this simple test code, after the 
  last parenthesis.
  Seems like I am staring at something but can't see 
  it...
  Anyone with better pair of eyes?
   
  Thanks
  Ara
   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 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 
  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 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor


  ADVERTISEMENT 









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



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.