Posts: 782
Joined: Wed Dec 19, 2007 07:50 AM
Re: Create Text File
Posted: Fri Apr 11, 2008 01:13 AM
Colin Haig wrote:I have to create a text file to send data to a bank - I created a database
with one field - I build each line in the databases and then use copy to
SDF with no delimiters but when the file is created it has an end of line
marker - when the file is imported to the bank it fails because of the end of line marker - can anyone suggest another way to do this.
Hi Colin:
The same way you fill the record field, you may fill a cLine character variable, then add it to a cText next way:
cText := ""
For nI := 1 To nTotalLines
cLine := cYourTextLine
cText += cLine + CRLF
Next
MemoWrit( "MyText.txt", cText )
I hope have been helpfull
Regards
Manuel Mercado
manuelmercado at prodigy dot net dot mx