Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code Adds Wrong Class
Message
 
À
13/02/2008 10:14:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01291993
Message ID:
01292173
Vues:
37
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform