Is it possible to explicitly declare a dimdata array as global?
GLOBAL MyArray[]
DIMDATA MYArray[], 0,1,2,3,4,5,6,7,8,9
Thats it.
Hi SchranzOr,
DIM is always global !
from this it follows that
DIMDATA MYArray[], 0,1,2,3,4,5,6,7,8,9
Quote from: peterpan on 2008-Sep-01
Hi SchranzOr,
DIM is always global !
from this it follows that
DIM MyArray[10]
DIMDATA MYArray[], 0,1,2,3,4,5,6,7,8,9
NO!
turn the debuger on, and read the warning:
warning : implicitly created GLOBAL : MyArray
Thats true, NOW its global, but thats the wrong way!
! PLS ! use (for global):
GLOBAL MyArray[]
DIMDATA MYArray[], 0,1,2,3,4,5,6,7,8,9
and local
LOCAL MyArray[]
DIMDATA MYArray[], 0,1,2,3,4,5,6,7,8,9
edited.
DIMDATA does _not_ need an explicit DIM before. I already know the size, so DIMDATA does DIM + DATA.
ahhhh cool :D