Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return value from form after creating form in code
Message
 
À
25/08/2002 15:45:46
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00693423
Message ID:
00693449
Vues:
22
Hilmar,

Good idea. I think this may do it, assuming I use a cmdButton as the calling object.

Had another suggestion to use a parameterized object from Sergey on same thread.

I guess there isn't a direct analogue from the "DO FORM... to lcReturnValue" syntax to something like "ofrmMyFormObject.Show() to lcReturnValue".

Thanks for your time on this today.

-- Larry

>OK; I'm not sure this is the easiest way, but I believe you can achieve your purpose as follows:
>
>
  • Let's first suppose you call your custom object from another form. Call it with ThisForm as parameter.
    >
  • In the calendar form, fetch the calling form in Form.Init(), and save it into a form property. Let's say this property is ThisForm.oCallingObject.
    >
  • When closing your calendar form, save a value to ThisForm.oCallingObject.dSelectedDate.
    >
  • Of course, the calling form must have this property.
    >
  • You can also pass any other object as a parameter. Just make sure it has the required property.
    >
    >HTH, Hilmar.
    Larry Tucker
  • Précédent
    Suivant
    Répondre
    Fil
    Voir

    Click here to load this message in the networking platform