Dim Arrays Problem?

Blitz3D Forums/Blitz3D Beginners Area/Dim Arrays Problem?

Hotshot2005(Posted 2008) [#1]
Hiya all,

I keep getting error saying "Expecting End of the line"

The code I was doing this
Graphics 1024,768			
SetBuffer BackBuffer()

Dim pic(5)
               
Global pic(1)=LoadAnimImage("Viper.JPG",1024,1,0,768) ;<< Error!


so having dim arrys with global mean I cant do that...correct me if I am wrong.


Gabriel(Posted 2008) [#2]
You don't need to declare them global. They're automatically global.


Hotshot2005(Posted 2008) [#3]
Oh right I see. well the code I used Functions which why I used Global for it. now you have said "automatically global"

thank you very much