Page 1 of 1

PB 4.01 Dim array and Global dim array.

Posted: Tue Nov 21, 2006 6:07 pm
by CONVERT
May be an improvement of the compiler, if possible...

The following code works.

But if you remove ";" in the first line, it does not work.

May be it should be good to warn the fact that a table was already declared as not global before...

It is not so important...

Code: Select all

; Dim table$(0)

Global Dim table$(0)

Procedure test ()
  Dim table$(10)
  table$(3) = "3ème"
  table$(5) = "5ème"
EndProcedure

test()

Debug table$(3)
Debug table$(5)

End

Posted: Thu Nov 23, 2006 6:04 pm
by Psychophanta
Hi
It is a bug!
Why don't you post it in the bugs reports?