Object KeyWord

Blitz3D Forums/Blitz3D Beginners Area/Object KeyWord

Basically you use it in combination with the undocumented 'Handle' command, like this:-

Type MY_TYPE
Field whatever
End Type

Global a_custom_type.MY_TYPE = New MY_TYPE ; This could also be a local type pointer.

integer_variable% = Handle( a_custom_type.MY_TYPE )

a_custom_type.MY_TYPE = Object.MY_TYPE( integer_variable% )

'Handle' takes the type pointer value stored in the type pointer variable between the parenthesis and outputs it as an integer value.

'Object' takes the integer value between the parenthesis and outputs it as a type pointer value. The 'Object' keyword should be followed by a full stop and then the name of the type you want to output ('MY_TYPE', in the example above).