06-18-2006, 11:00 PM
I'm working on a game in VB6. In a seperate module, I've declared a bunch of Public Types, then declared some variables to represent them. What I want to do is have those variables transfer over to other forms.
However, when I do try to represent the declaration (i.e., foo.bar or whatever) in another Form, VB6 complains that that declaration doesn't exist. I thought that when you declare/DIM something in a module it's automatically made public.
I've declared the type structs (if that's what you call them) before any Subs within the module.
Hope I've explained it correctly.
However, when I do try to represent the declaration (i.e., foo.bar or whatever) in another Form, VB6 complains that that declaration doesn't exist. I thought that when you declare/DIM something in a module it's automatically made public.
I've declared the type structs (if that's what you call them) before any Subs within the module.
Hope I've explained it correctly.