Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pass variables from one form to another?
Message
 
 
To
06/11/2002 23:40:44
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00719680
Message ID:
00719681
Views:
10
>Hi all:
>
>Form A declares a set of variables. Click event of a command button fires up another Form B (within Form A). I pick a date, name and a time (displayed as a charcter field), which are assigned to variables. User clicks return on Form B to be returned to Form A.
>
>What is the best way of passing these variables from Form B to Form A?
>
>Thak you in advance.

Couple of ways. One would be to pass form's A reference to form B, e.g.
do formB with this
formB init
lparameter toCallingForm
thisform.oCalForm = toCallingForm

You can bind your textboxes to thisform.oCalForm properties (or assign them before formB releases) In formB.Destroy put thisform.oCalForm = null

If you use VFP7 you can pass array back, but I don't use VFP7 yet...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform