Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File problem (#2)
Message
 
À
04/07/2003 09:36:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00806939
Message ID:
00807263
Vues:
36

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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform