local loTest as Cotest
loTest=CreateObject("CoTest")
What is CoTest? Is it from a DLL where you've just been given sample VB code?
If this code is running on a form then remember that in VFP you have the ability to create the object as a property of the form. In VB you had to create a private module-level variable.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.