Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error with NEWOBJECT()
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
MySQL
Divers
Thread ID:
01308856
Message ID:
01308898
Vues:
14
Did you try to specify the last parameter with fullpath, e.g.

c:\myProject\MyClasses\myClasslib.vcx

Also does the form and the class belong to the same library?

Which class (base class) do you try to instantiate?

>Hello,
>
>I run into a problem instantiating a class from a specific library.
>
>the code is:
>
>*Method: DoInstantiateObj()
>THIS.NEWOBJECT("MyObject","MyClass","MyLibrary")
>
>
>If I run this code from within the form object, the program hangs:
>
>THIS.DoInstantiateobj()
>
>
>However, if I run the code from another place, like the commandline, it does not hang:
>
>loForm.DoInstantiateObj()
>
>
>Also, if I copy the library to another library, it seems to work:
>
>*Method: DoInstantiateObj()
>THIS.NEWOBJECT("MyObject","MyClass","MyLibrary2")
>
>
>What is going on?
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