I have a DBF with a general field with a Test.esd on it.
I need to save to a file xxx.esd, extract from the general field in Visual Foxpro 9.
I found the below code
LOCAL lcFileString
SELECT "MyTable"
COPY TO tmpTable FIELDS YourGeneralField NEXT 1
lcFileString=FILETOSTR("tmpTable.fpt")
ERASE "tmpTable.fpt"
ERASE "tmpTable.dbf"
lcFileString = RIGHT(lcFileString,LEN(lcFileString) - 599)
=STRTOFILE(lcFileString, "MyExport.bmp")
tested and this works for BMP but not for ESD. where I am missing ??
I need to save to a file xxx.esd, extract from the general field in Visual Foxpro 9.
I found the below code
LOCAL lcFileString
SELECT "MyTable"
COPY TO tmpTable FIELDS YourGeneralField NEXT 1
lcFileString=FILETOSTR("tmpTable.fpt")
ERASE "tmpTable.fpt"
ERASE "tmpTable.dbf"
lcFileString = RIGHT(lcFileString,LEN(lcFileString) - 599)
=STRTOFILE(lcFileString, "MyExport.bmp")
tested and this works for BMP but not for ESD. where I am missing ??