I would like to be able to say
global dim myarray[20]
rather than having to do
global myarray[]
dim myarray[20]
global dim myarray[20]
Thats bad code!
Why? I want to make an array of 20 fields and I want it global. It makes a lot more sense to me than having to do
global myarray[]
dim myarray[20]
What is bad about the one line version?
DIM are allways global ;)
But if you dim an array you get a warning, that isn't realy good either I would say :-)
DIM myarray[5]
warning : implicitly created GLOBAL : myarray
First you declare the variable
GLOBAL myarray[]
then you set the size in an INIT: function or something:
DIM myarray[5]
I'm all for the:
Global Dim Array[20]
Too. :P
Makes life so easier, plus in other Basic languages is totally the same for example VB:
Public Array(20) As Integer
And not:
Public Array() as Integer
Redim Array(20)