Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Button calls a form, form returns values, button code co
Message
From
29/08/2008 06:46:33
 
 
To
28/08/2008 21:59:27
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01342942
Message ID:
01342994
Views:
6
This message has been marked as a message which has helped to the initial question of the thread.
Maybe I'm just tired, but I have Form1 with a button that calls another Form2 just to gather a couple values from the user. Then I want to take those values and continue on in the button click code on Form1. I have Ok and Cancel buttons on Form2 that return either .T. or .F. respectively. How can I keep the other values gathered from Form2 in scope, or return them to Form1? Something simple for now would be nice.

As Christof says, you need to store these values to form properties. The reason for this is that by the time you get to the form's Unload() method, all the textboxes and other objects contained in the form have been destroyed. You can even bind you textboxes and such to your form properties so they are populated automatically when the user types the values in the controls.
Previous
Reply
Map
View

Click here to load this message in the networking platform