Trying to pass a UDT to a property I get error

Tech-Archive recommends: Speed Up your PC by fixing your registry



I have been trying to pass a UDT type to a control.
THe type is declared in a library that is refrenced in the control and the
calling application.
I fill values in the parent app and try to pass the UDT to the controls
property and I get the error
"ByRef Argument type Mismatch"

The error occurs on this line in the parent app
ucPmcTypeTest.udt*** = ***

THe property in my control is coded like so
Public Property Let udt***(byRef udtNewValue as smShapeManager)
msgbox "Hey it works"

End property

Any ideas what is wrong I tried with different types to be sure it was not
something in the 1 type
TIA

Dan Rowe


.


Quantcast