Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class definition not found
Message
 
 
À
10/01/2000 21:08:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00315613
Message ID:
00316183
Vues:
37
Hi Eric,

AFAIK NewObject method in new in Version 6.0, so that's why we can not be aware of it. As I wrote in my prev. message, I had the similar problem before (BTW, I don't think it's a good habit to change settings in Form Init method. I even wrote this in "VFP Do and Dont's " document), which I solved by using NewObject method. Since then I highly recommended to use this new method instead of AddObject. Look at Help for more details and you'll find, that this method doesn't requier to open ClassLib or SET CLASSLIB TO, which is definitely an advantage.

>Nancy (and Nadya)- you are absolutely right. I forget that there is a method as well as a function. 'Twas me who was missing something (not so) subtle.
>
>
>>I must be misunderstanding some subtle. Or not so subtle, perhaps *s*. The NewObject() method can be used in place of the AddObject() method.
>>
>>From the help:
>>
>>NewObject Method
>>
>>Adds a new class or object to an object directly from a .vcx visual class library or program.
>>
>>>NewObject cannot replace the AddObject method, only the CREATEOBJECT function. Carlie's problem is probably one of path resolution, and not instanciation order, or calling syntax.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform