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

[amibroker] Re: For loop help



PureBytes Links

Trading Reference Links

Many thanks Dingo!
That is the answer I've been looking for.  A few more weeks with AFL 
and hopefully I'll catch stuff like this.
Regards,
Ron



--- In amibroker@xxxxxxxxxxxxxxx, "dingo" <dingo@xxxx> wrote:
> I moved your title statement because you were using "Setpoint" and
> "ScanPeriod" before you had defned them which you can't do.
>  
> The reason the exit from the while was not working is that the 
variable N is
> a "Scalar" - just a plain old number and when you try to assign the 
result
> of the IIF it is trying to put an array of numbers into that 
scalar - that's
> the error message you were getting.  Last Value will take the 
number in the
> last element of the array and put it into N which solves the 
problem.
>  
> Now, having said all of that I don't know if the results are what 
you
> intended BUT the escape from the While DOES WORK.

> 


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 Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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:
 http://docs.yahoo.com/info/terms/