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