Comparing user types

BlitzMax Forums/BlitzMax Beginners Area/Comparing user types

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.

this works:

Type test
	Field one:Int
	Field two:Float
	Field three:Long
End Type

Local a:test = New test
Local b:test = New test

a.one = 10
a.two = 20
a.three = 123456789

Print "a = "+a.one+" "+a.two+" "+a.three
Print "b = "+b.one+" "+b.two+" "+b.three

MemCopy b,a,SizeOf(a)
Print
Print "b = "+b.one+" "+b.two+" "+b.three


didn't test on Macs... should work though.