Accessing a type within a type

BlitzMax Forums/BlitzMax Beginners Area/Accessing a type within a type

God this is real tricky.
As another example I have this:-

Strict

Graphics 640,480

Type pages
	Field _x:Int = 0
	Field _y:Int = 0
End Type

Type book
	Field mypages:pages[50]
End Type


Global mybooks:book

Repeat
	Cls
	
	mybooks.mypages[0]._x = 1
	
	DrawText(mybooks.mypages[0]._x, 50, 50)
	
	Flip
	
	FlushMem
Until KeyDown(KEY_ESCAPE)


But I can't seem to get at the fields of the type within a type. I tried putting them inside Method New() but I got a different error. Blitz doesn't throw an error and merrily compiles but throws a wobbler later.

This is actually really quite confusing. :(