Help: How do I access type feilds without an insta

Blitz3D Forums/Blitz3D Beginners Area/Help: How do I access type feilds without an insta

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

type globaltype
field scrwidth
field scrheight
end type

myglobal.globaltype=new globaltype
myglobal\scrwidth=800
myglobal\scrheight=600


;at any point later, assuming only the 1 globaltype instance exists

putyourinstancenamehere.globaltype=first globaltype
if putyourinstancenamehere.globaltype=null then runtimeerror("there aren't any global type instances")
[