How clone objects?

BlitzMax Forums/BlitzMax Programming/How clone objects?

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.

Hello people.

How i can clone objects in BMax?

Having:

Type myObject
Field name:String
Field x:Int
Field y:Int
End Type

Local a:myObject
a.name = "temp"
a.x = 10
a.y = 10

Local b:myObject

I want to clone a on b.

Any solution?

thanks.