<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Mon, 03 Sep 2001 23:53:12 +0100
From   : Martin Thomas <martin@...>
Subject: Re: BASIC Programming: Positively soul destroying

In article <167.45d01c.28c54b37@...>, MJBramham@aol.com writes
>    Subscript at line 1150 
>    > 
>
>    This is line 1150: 
>
>    R%(L%,2)=0:NEXT (probably no help knowing that!) 
>
>    Does anyone have any clue what on earth this message means? 

You've just tried to access an element of the array R% with a subscript
less than zero or greater than the size of the array.  e.g. If the array
is dimensioned as follows:-

        DIM R%(10,2)

then if L% has a value less than zero or greater than 10 then that error
will occur.

What is the DIM statement that creates the array?  What values are
assigned to L% during the FOR-NEXT loop?  Try adding a PRINT statement
to the offending line:-

        PRINT L%:R%(L%,2)=0:NEXT
        
Regards,

Martin.

<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>