Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Button calls a form, form returns values, button code co
Message
 
To
29/08/2008 09:22:55
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:
01343076
Views:
20
In my method, you don't have to wait for the form to be unloaded to have access to the variables, the first screen can make use of the information while the second form is still open.

Bob

>Ok, yours and Christoph's ideas are good. How should I choose? Is there an advantage of one over the other or is it just personal choice?
>
>>The way I like to handle this is to put those properties an the original form, and populate them from the second form. When you launch the second form, in the load, make an object reference to the first form using something like
>>
>>THIS.oCalledFrom=_SCREEN.ACTIVEFORM
>>
>>Then use
>>
>>oCalledFrom.MyProperty=...........
>>
>>Then the value is already on the first form when you return
>>
>>Bob
>>
>>
>>>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.
'If the people lead, the leaders will follow'
'War does not determine who is RIGHT, just who is LEFT'
Previous
Reply
Map
View

Click here to load this message in the networking platform