arrays in types?

BlitzMax Forums/BlitzMax Programming/arrays in types?

dynaman(Posted 2005) [#1]
The following code tells me that testarr is not found. Are arrays not allowed in types or am I just getting this completely wrong?

Type tfred
	Field testarr[10]
End Type 


Local myfred:tfred = New tfred
tfred.testarr[1] = 10



dynaman(Posted 2005) [#2]
Never mind simple case of brain damage again. The line

tfred.testarr[1] = 10

should be

myfred.testarr[1] = 10