04-08-2005, 03:09 PM
In QB you can use LSET to copy a complete UDT to another one.
FB gives a wrong type error.
It was a "blind" copy, at user's risk, but i found it very useful...
Perhaps the differnce should be documented in the Keywords list
Code:
type mytype
id as integer
prv as integer
nxt as integer
end type
dim as mytype a,b
a.id=10
a.prv=21
a.nxt=4
lset b,a ' <wrong type error !!!
print b.id,b.prv,b.nxt
sleep
FB gives a wrong type error.
It was a "blind" copy, at user's risk, but i found it very useful...
Perhaps the differnce should be documented in the Keywords list
Antoni