Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning data from a form
Message
 
À
21/01/1997 16:04:32
Paul Watson
Mcv Global Systems, Inc.
Pasadena, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00018006
Message ID:
00018018
Vues:
42
>In my form's INIT method I have the following code:
>
>PARAMETERS dStartDt, dEndDt, cTitle
>ThisForm.dStartDate = dStartDt
>ThisForm.dEndDate = dEndDt
>
>You can't use PARAMETER ThisForm.dStartDate....
>
>So, how can I keep the parameters "alive" once the INIT method completes?
>
>Sorry if I'm being thick headed :-)

use properties in your subform. in your init, say

thisform.subStartDate = dstartdt
thisform.subEndDate = denddt

they will then be available throughout this form.
if you save the form as a class and use createobject(), you won't need to pass by reference. you can get the values after you exit the form by looking at these properties before releasing the form object...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform