Function that returns a type

Blitz3D Forums/Blitz3D Programming/Function that returns a type

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.

just use the "handle()" function to return the handle of the type. EG:

ty.mytype

savedtypevariable=handle(ty)



Later when you need to access it, you go like this:

if object.mytype(savedtypevariable)<>null
ty.mytype=object.mytype(savedtypevariable)
endif