Global variable

J

Jackie

Hi, I'm doing database related application in Visual
Basic 6.0. I ran into problem when I want to pass the ID
(primary field) to the other form, how could I do that?

Please let me know soon!! Thanks, Jackie
 
C

copyco

Are you displaying this ID in a textbox or other object on the form? If
so, then you can get it by referencing it from another form. For
example, in form2, you can say ...

myID = form1.textbox1.text
 
A

Ahsan

Easiest way is you can declare you Global function and
variables in VB6 modules.

or you can pass variables to child form.

good day there
Ahsan
 
A

Armin Zingler

Jackie said:
Hi, I'm doing database related application in Visual
Basic 6.0. I ran into problem when I want to pass the ID
(primary field) to the other form, how could I do that?

Please let me know soon!! Thanks, Jackie

Add a public property or public method to the form and access/call it.

This is a VB.Net group. For older versions please turn to
microsoft.public.vb.*
 

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