Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return value from form after creating form in code
Message
De
25/08/2002 14:50:33
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:
00693431
Vues:
24
>Hi all,
>
>I know how to "DO FORM myform TO lcRetVal" to return a value from a form, but what if you create the form in code:
>
>ofrmTest = CREATEOBJECT('myformclass')
>
>You can't "DO FORM ofrmTEST TO lcRetVal". I tried DO FORM (ofrmTest) TO lcRetVal.
>
>ofrmTest.Show() correctly fires up the form, but how do return a value from it when created this way? I'm not quite sure how to deal with an oject reference to the form instead of the usual .scx itself.
>
>Thanks in advance,

Are you sure you made the form-class modal?

oFrmTest = CreateObject(...

seems the correct approach to me.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform