ARRAY_SUBS Error

328 views
Skip to first unread message

TimR

unread,
Jun 25, 2009, 5:02:35 AM6/25/09
to jBASE
We have a routine which sometime (not always) gets the following error

** Error [ ARRAY_SUBS ] **

Array subscript out of range , Line 1 , Source I_IO.ROUTINES

Trap from an error message, error message name = ARRAY_SUBS

Line 1 , Source I_IO.ROUTINES

jBASE debugger->

It happens, then if the user logs out and in again it works okay.

Any ideas?

Bruce Willmore

unread,
Jun 25, 2009, 2:03:24 PM6/25/09
to jBASE
Variable being used as a subscript for a dimensioned array is not
within the range that the array was DIMENSIONed for.

Igor Micev

unread,
Jun 25, 2009, 3:50:42 PM6/25/09
to jBASE
Hi,
and be careful of the start index in ARRAYS, with jBase Basic it
always starts with 1 by default.
Igor

Jim Idle

unread,
Jun 25, 2009, 5:59:13 PM6/25/09
to jB...@googlegroups.com
Well it lens what it says. Did you look at the values in the debugger.
Logging out probably resets common and so you start again until
whatever bug is exposed again. As it is lime 1 it suggests a call
parameter is wrong or the subroutine parameter is wrong. But maybe the
debut info is not available.

Jim

Jim Idle

unread,
Jun 25, 2009, 6:00:30 PM6/25/09
to jB...@googlegroups.com
Not In proper emulation mode though.

Jim

VK

unread,
Jun 26, 2009, 3:55:52 AM6/26/09
to jBASE
Hi,
Are you talking about a local routine? If yes then post the source
here.

VK


On Jun 26, 2:00 am, Jim Idle <j...@temporal-wave.com> wrote:
> Not In proper emulation mode though.
>
> Jim
>

Road Jogger

unread,
Jun 29, 2009, 4:27:51 AM6/29/09
to jB...@googlegroups.com
If your routine is doing some a/cing etc... then set the VARIABLE V.....

Daniel Klein

unread,
Jun 29, 2009, 12:27:47 PM6/29/09
to jB...@googlegroups.com
Perhaps I should put a Babel Fish in my ear to translate this into
something that makes sense.

Dan

VK

unread,
Jun 30, 2009, 6:56:20 AM6/30/09
to jBASE
Again, is it a local routine?
Possibly calling F.WRITE or F.READU many times (in a loop?)

Do you do it more times than the figure in SPF field CACHE.SIZE ?

VK

On Jun 29, 8:27 pm, Daniel Klein <danielklei...@gmail.com> wrote:
> Perhaps I should put a Babel Fish in my ear to translate this into
> something that makes sense.
>
> Dan
>
Reply all
Reply to author
Forward
0 new messages