[futurebasic] Re : [FB] Array Bounds

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 1999 : Group Archive : Group : All Groups

From: "jonathan" <jonnnathan@...>
Date: Sun, 06 Jun 1999 22:22:23 +0200
> Ok, now that I have my communications program sending transactions in 
> blocks, I resumed work on it. I'm getting an array bounds error, but I
> have no idea what array is causing the problem. After I connect to a
> server and login, it receives some data, then gets the error.
> I guess the array giving me the problems can be identified by using
> MacsBugs, but I'm not familiar with MacsBugs. Does anyone know how to
> identify this array?

Is the error in FB or macsBug?

If in FB it means that you're trying to use a record in an array that you
haven't dimmed:

DIM myRecord(5)
myRecord(6) = 1234

The most common cause of this is array zero confusion.
If you have set arrays start at zero in the prefs then

DIM myRecord(5)
means that you can use
myRecord(0) -> myRecord(4)
which makes the five you dimmed

have a look and check your code for this.