Leviathan07
Programmer
Here is the problem:
I tried creating a Public Type in a module and then pass it into a TagVariant (Variant Data Type) on another control, however, I got an error that says I cannot do this unless it is part of a Public Object Module. So what is a Public Object Module, as I could find no documentation on it.
To replicate:
Create a module and place in it
Public Type Test
A as string
B as string
end type
then on a form_load do this:
dim varA as variant
dim udtA as test
udta.a = "1"
udta.b = "2"
vara = udta 'This line generates the compile error
I tried creating a Public Type in a module and then pass it into a TagVariant (Variant Data Type) on another control, however, I got an error that says I cannot do this unless it is part of a Public Object Module. So what is a Public Object Module, as I could find no documentation on it.
To replicate:
Create a module and place in it
Public Type Test
A as string
B as string
end type
then on a form_load do this:
dim varA as variant
dim udtA as test
udta.a = "1"
udta.b = "2"
vara = udta 'This line generates the compile error