Types. Help anyone?

BlitzMax Forums/BlitzMax Beginners Area/Types. Help anyone?

Edit: Argh beaten.. oh well at lest i post code WHAHAHA! lol

typecast is what you need...

Type A
Field x
End Type

Type B
Field y=10
Field z=20
End Type

Global obj1:A=New A
Global obj2:B=New B

global currentobject:object=obj2

print b(currentobject).y
print b(currentobject).z

' print a(currentobject).x ' Wont work