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

Re: [amibroker] Subscript out of range



PureBytes Links

Trading Reference Links



gottcha
 
----- Original Message -----
Sent: Sunday, November 15, 2009 4:21 PM
Subject: Re: [amibroker] Subscript out of range

 

i = 0
is the ASSIGNMENT !
 

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
Sent: Sunday, November 15, 2009 3:39 PM
Subject: [amibroker] Subscript out of range

Hello,
 
it´s probably just flawed thinking on my part, but I don´t understand why I get "subscript out of range" when I use the following if/else in CBT code:
 

if (i=0)

y=ATRexRounded[0];

else

y=ATRexRounded[i-1];

The code is embedded in a for loop, so all yalues for i=0, 1, ... barcount should be defined, right?

for (i = 0; i < BarCount; i++) //

{

}

Thanks

Markus



__________ Information from ESET Smart Security, version of virus signature database 4609 (20091115) __________

The message was checked by ESET Smart Security.

http://www.eset.com



__________ Information from ESET Smart Security, version of virus signature database 4609 (20091115) __________

The message was checked by ESET Smart Security.

http://www.eset.com


__________ Information from ESET Smart Security, version of virus signature database 4610 (20091115) __________

The message was checked by ESET Smart Security.

http://www.eset.com


__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___