Have Type, need Float Ptr

BlitzMax Forums/BlitzMax Beginners Area/Have Type, need Float Ptr

Peter, you can do that (Int Ptr(Varptr t:mytype)) but you need to use the varptr of the first field of the type to avoid the blitzmax header:
Type test
	Field	a,b
End Type

Local t:test=New test
Local p:Int Ptr=Varptr t.a
p[0]=10
Print t.a