use one form variable value into other form 
Author Message
 use one form variable value into other form

hallo,

In my vb6 program i declared one variable in form1 and assian some value in
that variable in that variable value i want to use to form2. how can i
declare the variable and how can i use?
anyone helps me,
thanks.
RAJU



Mon, 30 May 2005 20:25:30 GMT  
 use one form variable value into other form
Hi,

You can do as follows:

1.  Declare the variable as public in Form1 as follows:
      Public s As String
2.  In Form2, use the following syntax to refer to this variable:
      Form1.s

Regards,
Elan Zhou
This posting is provided "AS IS" with no warranties, and confers no rights.
Got .Net?  http://www.gotdotnet.com



Tue, 31 May 2005 10:22:33 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Useing One form Variable value in to other Form

2. question about passing variables values from one form to other

3. Forms Collection: Using it to Open Forms by Passing the Form Name as a String Variable

4. Accessing one forms variable from another form

5. Using variables in more than one form?

6. One one form based on a control value in another

7. How to have combo box in one form select record to be used in another form

8. How to declare variables set in form proc but used after form unloaded

9. load another form form one form

10. Problems defining a user defined type variable for use on more than one form

11. Export variables from one form to another

12. carrying variables from one form to another

 

 
Powered by phpBB® Forum Software