Global variable

  • Thread starter Thread starter Jackie
  • Start date Start date
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
 
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
 
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
 
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.*
 
Back
Top