bruno.trudo
Board Regular
- Joined
- Jan 14, 2004
- Messages
- 98
Hi,
is it possible to use user declared type as a parameter of the method of class. I tryed it, but without success.
i.e.
I have a type declared in module
Public Type AdfPoint
PID as String
.
.
Note as String
End Type
and I would like to declare a method of class
Public Sub Add(Point As AdfPoint)
.
.
End Sub
If I create an instance of this class in code and try to use variable Point as AdfPoint as parameter, VB shows an error Variable required - can't assign to this expression
Is there a solution?
Thanks
is it possible to use user declared type as a parameter of the method of class. I tryed it, but without success.
i.e.
I have a type declared in module
Public Type AdfPoint
PID as String
.
.
Note as String
End Type
and I would like to declare a method of class
Public Sub Add(Point As AdfPoint)
.
.
End Sub
If I create an instance of this class in code and try to use variable Point as AdfPoint as parameter, VB shows an error Variable required - can't assign to this expression
Is there a solution?
Thanks