### new (may be not new) Sedoric bug found (all versions)

Posted:

**Thu Aug 30, 2007 4:30 pm**In "Sedoric à nu" of Andre Cheramy, I saw that there was a problem preventing to use the DIM commans between an OPEN and a CLOSE (file access).

Well, I think I saw another one...

Between an OPEN and a CLOSE, you cannot USE any multi-dimensional array of integer.

For instance :
With a one-dimensional array of integer, it's OK :
With a multi-dimensionnal array of floating values, it works too :
It took me 3 days to understand what was going wrong with my array of integers !!!

Well, I think I saw another one...

Between an OPEN and a CLOSE, you cannot USE any multi-dimensional array of integer.

For instance :

Code: Select all

```
10 DIM T%(10,10)
20 OPEN S,"FILE.BIN",1:REWIND 1
30 FOR I=0 TO 10
40 FOR J=0 TO 10
50 TAKE 1,R%
60 T%(I,J)=R%:' <---BUG !!! (BAD RECORD NUMBER....)
70 NEXT J
80 NEXT I
90 CLOSE 1
```

Code: Select all

```
10 DIM T%(10)
20 OPEN S,"FILE.BIN",1:REWIND 1
30 FOR I=0 TO 10
50 TAKE 1,T%(I)
80 NEXT I
90 CLOSE 1
```

Code: Select all

```
10 DIM T(10,10)
20 OPEN S,"FILE.BIN",1:REWIND 1
30 FOR I=0 TO 10
40 FOR J=0 TO 10
50 PUT 1,T(I,J)
70 NEXT J
80 NEXT I
90 CLOSE 1
```