Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement