Hi,
as i realized until now it is not possible to simply assign resp. copy
one udtype-varialbe to another with the =Operator
in VB6 it works this way:
|
Jabaco Source
|
1
2
3
4
5
6
7
8
9
|
Private Type Point2D
x As Double
y As Double
End Type
Dim p1 As Point2D
Dim p2 As Point2D
p1.x = 10
p1.y = 20
p2 = p1 ' error in Jabaco
|
after the last line, the point p2 has the same coords like the point p1
but it is not possible in Jabaco.
one could write a Subroutine like this:
|
Jabaco Source
|
1
2
3
4
|
Public Sub Point2DAssign(ByRef ptDst As Point2D, ByRef ptSrc As Point2D)
ptDst.x = ptSrc.x
ptDst.y = ptSrc.y
End Sub
|
but it would be more nice to have the =operator to copy the udType-variables.
or is there another possibility?
greetings
+Oliver