SET CLASSLIB TO Classes oMyClass = CreateObject("myClass") myPrice = "1234444.444444444" ?oMyClass.FormatPrice(myPrice) 1234And the first line in my FormatPrice method is
parameters MyPrice
I have copied the code for the FormatPrice method to a prg classDEFINE CLASS testclass as Session olepublic PROCEDURE FormatPrice(myPrice as String) Parameters MyPrice *** rest of code EndProc EndDefinethen created a DLL like this
Build Project VFPopubtest From oPubClass.prg Build Mtdll VFPoPubTest From VFPoPubTest recompileThen at the command prompt called this function like this
> oVfpDll = CreateObject("VfpOpubTest.TestClass") myPrice = "1234444.444444444" ? alltrim(oVfpDll.FormatPrice(myPrice) 1234Normally, this works fine. However, suddenly, the oVfpDll.Format_Price