>>Sorry I don't really understand coz I'm just a beginner user of Visual Foxpro
Then I am sorry, but I can't help you much. I cannot possibly write the code for you.
I am not being mean, or unkind, but I simply don't know what your table structure is, the field names, what the format you want the output, or even what version of VFP you are using!
Here is the basic structure for a program of this type (using VFP 9.0), now go figure out how to make it do exactly what you need:
SELECT [table] SCAN FOR lnCnt = 1 TO FCOUNT() lcField = FIELD( lnCnt ) IF TYPE( lcField ) = "M" *** Memo Field lnLines = ALINES( laLines, lcField, 1 ) lcOutStr = "" FOR lnLCount = 1 TO lnLines lcOutStr = lcOutStr + laLines[ lnLCount ] + CHR(13) + CHR(10) NEXT ELSE *** Convert to character string lcOutStr = TRANSFORM( &lcField ) ENDIF STRTOFILE( lcOutStr, [file_name], 1 ) NEXT ENDSCAN
|