You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

OlimilO

Intermediate

  • "OlimilO" is male
  • "OlimilO" started this thread

Posts: 277

Date of registration: Jan 18th 2009

Location: Germany

Occupation: software engineer

  • Send private message

1

Monday, January 19th 2009, 11:32pm

assigning, copying ud-type-variables

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

Manuel

Administrator

  • "Manuel" is male

Posts: 256

Date of registration: Jul 16th 2008

Location: Erlangen, Germany

Occupation: Software Developer

Hobbies: Jabaco, game theory, text-mining

  • Send private message

2

Monday, January 19th 2009, 11:43pm

There was a bug with UDT's. Next version will fix that.

OlimilO

Intermediate

  • "OlimilO" is male
  • "OlimilO" started this thread

Posts: 277

Date of registration: Jan 18th 2009

Location: Germany

Occupation: software engineer

  • Send private message

3

Tuesday, January 20th 2009, 7:26am

ah OK,

many thanks

greetings

+Oliver

Rate this thread
WoltLab Burning Board