Kicker
11-01-2005, 10:31 AM
Other than using a public variable, is there any way to conveniently "pass" a value from one form to another? For example:
I am using form-1 for working with a table. Periodically, I need some information not available on the form or table. The data isn't something that can be related to the original form. I have a command button that loads and shows a form-2 which allows me to calculate another piece of information.
I know I can just move the data into a "public" variable and close the form-2
I know I can use form-1.txtbox.value = new value
What I would like to do is create a function to get the data such as:
myData = getData() and have getData() load the form and return the value....
Just a question
I am using form-1 for working with a table. Periodically, I need some information not available on the form or table. The data isn't something that can be related to the original form. I have a command button that loads and shows a form-2 which allows me to calculate another piece of information.
I know I can just move the data into a "public" variable and close the form-2
I know I can use form-1.txtbox.value = new value
What I would like to do is create a function to get the data such as:
myData = getData() and have getData() load the form and return the value....
Just a question