Hi all,

I defined a new type in a regular module, say:
Type Ack_Msg
Token as String*3
Status as string
End Type

Then in one of the forms in the project I declared:

Private Sub Contact_Server()
Dim strData As Ack_Msg_T
....

but as the program reaches that sub I get an error
message:

"Compile error:

Only user-defined types defined in public object modules can be coerced to or from a variant or passed to late-bound function."

What went worng?

I tried to change the sub type to public, and the declaration of the var, without any success.

According to MSDN I did what I suppose to do (to my understanding...)

Please help.

Thanks.