How to create a global array?

Blitz3D Forums/Blitz3D Programming/How to create a global array?

dman(Posted 2010) [#1]
Hi, Trying to create an global array to use in each function.

I tried doing this : GLOBAL DIM img(30) but it do not work.


Please help.

thanks


Warner(Posted 2010) [#2]
Dim is global by default.
You should however create an array before you are using it.


dman(Posted 2010) [#3]
thanks for the response. but when I tried to use it it gives me an error

the error is : function not found .

please help


Warner(Posted 2010) [#4]
I can't really tell what your problem is without any example.
But here is how you create an array and use it in a function: