Hello HumblyBob,

>You must not access array elements outside 0..(BarCount-1) range

Sorry, I can't dig in but as a starting point:

Since BarCount-1 is positive number 0 to BarCount 1 can't include 
negative numbers?
So list[i] = -100000; is outside the range?

As per Progsters comment - it is hard to come to grips with what you 
are doing without context.

brian_z


--- In [email protected], Humblybob <[EMAIL PROTECTED]> wrote:
>
>   Would be highly obliged if someone can help me with correcting 
this error
> in an afl. I am not a programmer and hence struggle with this. I do 
realize
> that this error has to do with the number of bars. What values do I 
need to
> change so that this afl works with even those scrips that have even 
1 or no
> bars.
> 
> limitvalue=63
>  startValue = 64;
> 
> //----
> 
>    for (i = 0; i <= limitValue; i++) list [i] = -1000000;
> 
>    for (i = startValue; i <= 127; i++)   list [i]
> ------------------------------------------------^
> 
> Error 10.
> Subscript out of range.
> You must not access array elements outside 0..(BarCount-1) range
> 
> 
> Many thanks in advance.
>


Reply via email to