NullO, I tested the use of a type declared at the beginning of the program and used it to structure an array inside a function with no problem:
Rem Creating a type to use both inside and outside of a function
Type MyType
A$ as String
B as Integer
EndType
Rem Testing Array of MyTypede
Dim MyArray(10) as MyType
MyArray(0).A$="Test outside function"
MyArray(0).B=27
Print ".A$ = ";MyArray(0).A$;", B = ";MyArray(0).B
Print
_MyFunction()
Wait Key
Function _MyFunction()
Rem Testing if MyType can be used to structure an array inside a function too
Dim FuncArray(10) as MyType
FuncArray(0).A$="Test Inside Function"
FuncArray(0).B=34
Print ".A$ = ";FuncArray(0).A$;", .B = ";FuncArray(0).B
EndFunction
You're not trying to access your array like this are you?
Wrong way:
Print MyTypeArray.A$(X)
Correct way:
Print MyTypeArray(X).A$
Else check for other typos!