Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning a value from a createobject('modalformclass')
Message
De
30/08/2000 11:26:51
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00410770
Message ID:
00410810
Vues:
13
Cool. Thanks Ko and Trey (once again, eh?)

Now there in one less parameter I have to pass (cVar).

I put a This.Show(1) in the class' init()... is putting it in the calling routine better?


- Brian


>>So...
>>
>>Instead of ThisForm.Release when the user oks or cancels the custom class, issue ThisForm.Hide()
>>
>>Then in the calling method:
>>*** From a custom method in Form A
>> cVar = ''
>> loFrmRV=CREATEOBJECT('frmReturnVal','frmRV',cVar,'param1','param2')
>> RELEASE loFrmReturnVal
>>
>>interesting... I'll give it a try. Thanks.
>

>Almost,
>
>loFrmRV=CREATEOBJECT('frmReturnVal','frmRV','param1','param2')
>loFrmRV.Show()
>cVar = loFrmRV.cReturnVal
>Release loFrmRV
>
>
>Hope this helps,


VFP6 SP5, VFP8 SP1, VFP 9 SP 1 and Win XP SP 3 (unless otherwise specified)


www.wulfsden.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform