General information
Category:
Coding, syntax & commands
NOw i found the solution i use FPUTS and it make my carriage return but when i write in the file it erase me character. How can i do if i dont want to lose character?
SELECT rapport
COPY TO "export.csv" TYPE DELIMITED WITH "" WITH CHARACTER "|"
IF FILE('export.csv') && Does file exist?
gnErrFile = FOPEN('export.csv',12) && If so, open read-write
ENDIF
lfield = ""
FOR gnCount = 1 TO (FCOUNT( ) - 1) && Loop for number of fields
lfield = lfield + FIELD(gnCount) + "|"
NEXT
lfield = lfield + FIELD(gnCount)
=FPUTS(gnErrFile, lfield )
=FCLOSE(gnErrFile)
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only