Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Button calls a form, form returns values, button code co
Message
De
29/08/2008 10:01:19
 
 
À
29/08/2008 09:58:19
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01342942
Message ID:
01343091
Vues:
23
>>Hi Jay,
>>
>> How can I keep the other values gathered from Form2 in scope, or return them to Form1?
>>
>>Store them into properties of the form. Then, in the Unload event create an object based on the EMPTY() class and use ADDPROPERTY() to transfer all values to the object. Return this object or NULL instead of .T. and .F.
>
>A coworker also questioned this method due to possible memory leaks on the created object.

Why would there be memory leaks? You have code like this:
LOCAL oReturn

DO FORM Form2 TO m.oReturn

* Do stuff with the return value

RETURN
When the method ends, the object is released.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform