Hi Albert, you can serialize and pass your object as Json using
"nfJsonCreate" and "nfJsonRead" (
https://vfpx.codeplex.com/releases/view/620040 ),
just change 2 lines of code:
loSomeObject=CREATE("empty")
ADDPROPERTY(loSomeObject,"FileName","C:\temp\test.doc")
** loFileWhizBang.OutputFile(loSomeObject)
** changes to:
loFileWhizBang.OutputFile( nfJsonCreate(loSomeObject) )
*** and method Outputfile ***
LPARAMETERS toFileObjectAsJson
**** Json string back to vfp object:
toFileObject = nfJsonRead( toFileObjectAsJson )
* strip the path off for some use
toFileObject.FileName = JUSTFNAME(toFileObject.FileName)
****
Marco Plaza
@nfoxdev
github.com/nfoxdev