Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Paths and NewObject
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Paths and NewObject
Miscellaneous
Thread ID:
00266729
Message ID:
00266729
Views:
53
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
Next
Reply
Map
View

Click here to load this message in the networking platform