I just change FPUTS instead of FWRITE and that's it, was solved


Thanks



 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Efren Pedroza
Sent: Thursday, November 27, 2008 6:19 PM
To: [EMAIL PROTECTED]
Subject: RE: Carriage Returnn on a Text File

I did it, and I see the same result

TIA



 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Jack Skelley
Sent: Thursday, November 27, 2008 6:07 PM
To: [EMAIL PROTECTED]
Subject: RE: Carriage Returnn on a Text File

Efren:
Try adding a line feed with the chr(13)
        FWRITE (lnFileHandle, c001numped + "|" + CHR(10) + chr(13)) Regards,

Jack Skelley

________________________________________
From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf
Of Efren Pedroza [EMAIL PROTECTED]
Sent: Thursday, November 27, 2008 6:56 PM
To: [EMAIL PROTECTED]
Subject: Carriage Returnn on a Text File

Hi there, I'm trying to write an ASCII file using Visual Fox Pro, everithing
is ok, but ..... I can't put an carriage return after each record, when I
see the result file, I see just a one record, I thing shoulb be very simple


My code:

------------------------------------------------------------
USE AT001 IN 1 ORDER I001C02
lnFileHandle = FCREATE('Interf2008.txt')

SELE 1
DO WHILE .NOT. EOF()

        FWRITE (lnFileHandle, c001numped + "|" + CHR(13))

        SELE 1
        SKIP
ENDDO

FCLOSE(lnFileHandle)
------------------------------------------------------------




[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to