Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining Object References and Closing
Message
From
03/10/2001 08:58:24
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
03/10/2001 08:40:51
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00563520
Message ID:
00563531
Views:
24
>I'm trying to tighten-up a couple applications and want to know if there is a way to cycle through all the existing object references so they can be set to NULL before shutdown? Thanks!
>
>Regards, Renoir

To check if a property is an object reference, you can use something like type("ThisForm.oProperty") = "O". To cycle through, perhaps you can use amembers() and recursion.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform