TXT file with vfp9

Author: Sytze de Boer

Posted: 2011-03-24 at 22:25:34

In one of my systems, I create a TXT file which is then imported by banking

software

I've never had a problem with this, until today

The code is 10 years old or more.

With this one client, I end up with one continuous line in the text file

With everyone else, I end up with a neat txt file with multiple lines

I can't figure why this simple code behaves differently with this one client

I'm inclined to add a simple chr(13) where it says

@l,0 say alltrim(dcdets)

but I don't want to screw it up where this has never been an issue

Does anyone wish to comment?

set devic to print

set printer to DCSCHED.TXT

@0,0 say ""

sele dcdetail

delete for len(alltrim(dcdets))=0

go top

l=0

do while !eof()

@l,0 say alltrim(dcdets)

l=l+1

skip

enddo

@prow(),pcol() say chr(13)+chr(10)

set printer to

set devic to scree

--

Regards

Sytze de Boer

Kiss Software

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

_______________________________________________

Post Messages to: ProFox@leafe.com

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/AANLkTim=-3qYY3HW=b_OwmzmMa+u2Tg3zkGGLb2cELaf@mail.gmail.com

** 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.

©2011 Sytze de Boer