GLBasic forum

Main forum => GLBasic - en => Topic started by: MrTAToad on 2009-Nov-04

Title: DIMDATA
Post by: MrTAToad on 2009-Nov-04
With DIMDATA, you need to specify whether the variable is LOCAL or GLOBAL before you can setup the list - ie, something like :

Code (glbasic) Select
GLOBAL demo[]
DIMDATA demo[],1.0


which makes typing it bit long-winded (and possibly prone to a Syntax Error if you forget the definition type).

It would be a bit more efficient to do something like :

Code (glbasic) Select
GLOBAL DIMDATA demo[],1.0
Title: Re: DIMDATA
Post by: Kitty Hello on 2009-Nov-06
that would be
DIMDATA GLOBAL arr[], 1,2,3
It works
I'm uncertain if there will be an strict-wrning, though.
Title: Re: DIMDATA
Post by: MrTAToad on 2009-Nov-06
Unfortunatey, you get a syntax error with that...