-
modules.
hello,
in the middle of making a project i decided to put a module in with a whole bunch of variables that i wanted to use with many forms in the project, however i copy them over to the module and they dont do anything.
no activity goes on that is meant to go on! did i do something wrong or should i start again with a module and dim my variables first then build up? thanks.
-
Are the variables declared as public? Generally speaking, it's a bad idea to have a lot of public variables but in order for what you're trying to do to work, the variables must be public.
-
you also need to make sure the variables are not on the form, only in the module. if they are on the form as well, it will treat the variables on the form as completely different as the ones in the module, even if they have the same name.
good luck
-
nope the variables aren't declared as public, i just listed Dim A as Integer etc and thats it. how would i go along making them public?
i left it as they were because i thuoght vb recognized em since when i said lbloutput.caption = memx2 it automatically changed the capitalisation to memX2.
-
To make them Public just replace the Dim keyword with Public.
:)