Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use DO FORM with TO
Message
De
18/06/2002 18:02:15
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00669922
Message ID:
00669927
Vues:
11
>I have a FORM_A and FORM_B. FORM_A sends a parameter and returns a value. I put the following code in FORM_A command button:
>
>DO FORM FORM_B with parm1 TO parm_return
>
>My FORM_B is suppose to send back a value from a textbox for example
>
>thisform.txtmileage
>
>Where do I put the RETURN statement in FORM_B with this textbox value. I did put it in unload method but it didn't know what thisform.txtmileage was. There must be a way to get the value from textbox on FORM_B back to calling FORM_A form. Does anyone know how to do this?

When the unload method is issued txtmileage is already destroyed. Create a new property in form B (say, mileage) that is filled by valid or lostfocus event of txtmileage. The return statement in form b unload method can safely refer to this new property.
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform