Hi, I wanted to know if this is possible? I have a main form and when the user clicks a button, this launches a new form with an input text field. I want the user to enter a value in this new form and the minute he clicks OK, I can access the user inputted text on the main form via a variable.
How do I do this?
0
Comments
In form number 2 make a global variable and a function that returns its value.
In form number 1 make a Form variable that references form number 2.
You will have to run the form modally, otherwise it will just open the form and keep on executing the code afterwards.
After that do "Form 2".GetMyVariable and see what happens.
I have a feeling that once the form is closed, though, all variables are thrown into the garbage collection. You might want to consider using a dialog box and the input method instead.
My Blog - nav.education
almost sounds like you're using this 2nd form as a Dialog Box only.
Does the second form have any other use besides a place to enter a text field?
http://www.BiloBeauty.com
http://www.autismspeaks.org
Yes, just one textfield. How do I do this using a Dialog box?
But any way a dialog box works like this...
Lets say I have a field on the item card I want to fill using a dialog box
I create a command Button and add the code
OnPush()
Here are some Input Dialog posts - probably more if you search
http://www.mibuso.com/forum/viewtopic.php?t=10830
http://www.mibuso.com/forum/viewtopic.php?t=16266
http://www.BiloBeauty.com
http://www.autismspeaks.org