Can anyone tell me why this array can not be seen in functions?:
No errors are reported, but the Dim'ed type is not Global. What am I doing wrong?
And while I'm on the subject of Types, I know it's possible to create a Type that consists of other types, but I'll be damned if I can figure out how to do it (and that's not in the docs, either :( )
I thought this would do it:
Am I doing something wrong here?
Thanks in advance!
Russell
; In main program: Type Test Field active End Type Dim thing.Test(15) ; Should be Global, right? For a = 0 To 15 thing.Test(a) = New Test thing(a)\active = 1000 Next Global thing2.Test = New Test ; This one IS Global Function Tester() DebugLog thing(0)\active ; Prints 0! End Function Tester()
No errors are reported, but the Dim'ed type is not Global. What am I doing wrong?
And while I'm on the subject of Types, I know it's possible to create a Type that consists of other types, but I'll be damned if I can figure out how to do it (and that's not in the docs, either :( )
I thought this would do it:
Type Subtype Field x,y End Type Type MainType Field One.Subtype Field Two.Subtype End Type
Am I doing something wrong here?
Thanks in advance!
Russell