Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capture data from another form
Message
From
17/09/2003 07:45:53
 
 
To
17/09/2003 04:58:49
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00829760
Message ID:
00829793
Views:
17
Sorry, fat fingers [send] before I had finished!

>> can anyone tell me how can I capture data from form to form,<<

There are many different ways;

1. you could pass a variable to the second form as a parameter, this could be updated by your second form.
eg. DO FORM SearchForm with cValue

2. You could pass an object reference
eg. DO FORM SearchForm with oSearch

3. you could pass a reference back to the calling form,
eg. DO FORM SearchForm with THISFORM

4. use a "wrapper"
FUNCTION RunSearch
cReturnValue=""
DO FORM SearchForm && searchform updates cReturnValue
RETURN cReturnValue

The wrapper is probable the most generic in that you can then use it from anywhere, however I have on many occasions used option 3.

Gary.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform