Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you return data from a modal Form object?
Message
 
To
18/03/1998 12:17:37
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00085149
Message ID:
00085416
Views:
37
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform