Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using ADDOBJECT vs CREATEOBJECT/NEWOBJECT?
Message
From
20/09/2002 15:03:58
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Using ADDOBJECT vs CREATEOBJECT/NEWOBJECT?
Miscellaneous
Thread ID:
00702890
Message ID:
00702890
Views:
50
I am looking at some older code I wrote where I have attached several objects to a custom class such as follows:
this.oEnvironment = NEWOBJECT('env','utils')
etc...
I have seen others use ADDOBJECT to do the same. What are the pros and cons of each? I would guess that garbage collection is better with ADDOBJECT.

Some clarification on this would be very helpful...
Next
Reply
Map
View

Click here to load this message in the networking platform