Using Global Variables in Forms (VB code)

  • Thread starter Thread starter AJ
  • Start date Start date
A

AJ

I'm trying to generate a form which uses a global variable
while the form is open.

When i declare my global variable at the top of the VB
code page and manipulate it's value in the procedures, i
get an error saying

"member already exists in an object module from which this
object module derives"

can anyone help me with this trivial problem?

thanks
 
Are you declaring the variable over again (are you dim
varName as Type at the top and in another procedure)? I
have received the same error when I dim'd more than once.

Hope this helps.
 
AJ said:
I'm trying to generate a form which uses a global variable
while the form is open.

When i declare my global variable at the top of the VB
code page and manipulate it's value in the procedures, i
get an error saying

"member already exists in an object module from which this
object module derives"

can anyone help me with this trivial problem?

What is the variable name? For that matter, how about posting the
actual variable declaration?
 
Back
Top