Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Capture data from another form
Message
De
17/09/2003 07:45:53
 
 
À
17/09/2003 04:58:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00829760
Message ID:
00829793
Vues:
18
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform