Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you return data from a modal Form object?
Message
 
À
18/03/1998 12:17:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00085149
Message ID:
00085416
Vues:
33
>Thanks that helps alot, but I'm not sure I understand about about the dangling object reference. Since thisform.oCaller is a property of the form won't it be destroyed when the form is destroyed?
>
>Thanks

It might at the form level, but I've found that objects contained in the form won't get rid of it. For example, I have a grid that has an .ocursor property.
This is used to contain an object reference of the cursor in the DE that matches the .RecordSource property. The .Destroy() event of the grid (if I put .oCursor = .NULL.) in it, will not kill it because of the order in which contained objects are destroyed. I've found that I must put any code to kill object references in the .Destroy() event of the form. One day, I'll devise a nice clean mechanism to kill them off, but for now, I just have them at the form level.

Steve
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform