Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File problem
Message
From
04/07/2003 09:41:00
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
04/07/2003 09:30:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00806936
Message ID:
00806943
Views:
22
You mean, carriage return after each line? Just add chr(13) + chr(10) to start the new line.

>This is my code
>===============
>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) + CHR(13)
> =FWRITE(gnErrFile, lfield )
> =FCLOSE(gnErrFile)
>
>ODDEVEN|CODE|OFFNAME|TEL1|TEL2|FAX|WEB|EMAIL(there i got a little square)
>|604-856-0422|www.sample.com|info@sample.com
>
>but it doest make chariage return
>how can i do
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform