Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to return a value from a form?
Message
De
27/11/2003 10:55:58
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How to return a value from a form?
Divers
Thread ID:
00854035
Message ID:
00854035
Vues:
54
I've created a form class that has a custom property to store a string. I'd like to pass this string back to the code that instantiated a from using the CREATEOBJECT() function. I've tried the following code but cannot get the return value.
ofrmTest = CREATEOBJECT("frmparam", "string1", "string2")
ofrmTest.Show()
lcChanged = ofrmTest.cReturnValue
ofrmTest.Release()
It appears that the form object, ofrmTest, does not exist when I try to assign the variable, lcChanged.

Any ideas where I may be messing up?

TIA to all that reply.

Regards,

Mike
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform