Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to return a value from an instantiated form class
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01207599
Message ID:
01207613
Vues:
15
Thanks for the reply Ivan! Actually that's what I'm doing, just wanted to see if there's a more direct way like the Do form myForm to myVariable.

Enmanuel

>>Hi all, I'm wondering if there's a way to return a value from a form's class instanced with create object, like this:
>>
>>
>>    oForm = createobject("myFormClass")
>>
>>
>>This particular class is for a custom dialog form and hence will always run as modal. I was thinking to create an object before instancing the form and pass the return value to that object but I'm wondering if there's a more direct way of doing this.
>>
>>TIA,
>>
>>Enmanuel
>
>
>Hi Enmanuel.
>
>Have you tried to create a property into your form and then getting its value before you release it?
>
>
>    oForm = createobject("myFormClass")
>    oForm.show()
>    lcMyParam = m.oForm.cParam
>
>
>Abraços.
I'm a mixture of Albert Einstein and Arnold Schwarzenegger. The only trouble is that I got Einstein's body and Schwarzenegger's brain
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform