|
-
Sep 13th, 2000, 04:17 AM
#1
Thread Starter
New Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|