Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Paths and NewObject
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Paths and NewObject
Divers
Thread ID:
00266729
Message ID:
00266729
Vues:
54
Hello,
I am using the NewObject() vfp 6.0 function to access functions located in a class contained in a compiled VFP .exe, from another program (a different VFP project).
That is,
aa=NewObject('myClass','myExe')
Then I issue
aa.myFunction()
to execute some function.

My problem is, it seems that the WHOLE of myExe gets into the execution path after doing so. That is, if I call myOtherFunction() which is located in myExe OUTSIDE myClass, and without using the object reference aa., it sometimes gets called.

(the problem of course is that I have another myOtherFuncion() in the project, which is the one I intend to call)

That is, VFP seems to look for function definitions in the whole .exe referenced in newobject(), not just in the referenced class definition. (At least from the developing environment). Is anybody aware of any way to prevent this from happening?

Thanks in advance
Rodolfo Martín Villanueva
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform