Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File problem (#2)
Message
 
To
04/07/2003 09:36:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00806939
Message ID:
00807263
Views:
35

IF FILE('export.csv') && Does file exist?
gnErrFile = FOPEN('export.csv',12) && If so, open read-write
IF gnErrFile > 0
lfield = ""
FOR gnCount = 1 TO FCOUNT() && Loop for number of fields
lfield = lfield + FIELD(gnCount) + IIF(gnCout ==FCOUNT(),"","|")
NEXT
FCLOSE(gnErrFile)
lfield = lfield + CHR(13)+CHR(10)+FILETOSTR('export.csv')
STRTOFILE(lfield, 'export.csv')
ENDIF
ENDIF

HTH
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform