Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code Adds Wrong Class
Message
 
To
13/02/2008 10:14:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01291993
Message ID:
01292173
Views:
36
Ok folks, I implimented NewObject, and it works like a charm. I have newfound respect for NewObject!

Thanks all



>>Ya, me either. I thought I heard one time that NewObject handles the instantiation differenty.
>
>NewObject and AddObject work essentially the same. But NewObject adds to the parameters the name of the class library to create the class object from. Both of these are methods and commands and work similar. NewObject also allows the creation of an object instance of a class without executing the newly created object methods; this can be used in code to "look" at the object without side effects of running code (like Load or Init).
>
>I believe (not tested) that the method versions work the same; i.e., attach a object to the parent. The command version of NEWOBJECT works by assigning to a variable.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Reply
Map
View

Click here to load this message in the networking platform