Using Global Variables in Forms (VB code)

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
 
J

John

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.
 
D

Dirk Goldgar

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top