Ted

A long shot here, I wonder if it has to do anything with the charater set. Maybe notepad/windows is reading
a char rbase is putting in as something else. I know there are some people on this list that know more
about this than I do, I have never tinkered in this area. Just a thought.

Jim

Ted Wolfley wrote:
Message
Hi,
 
Wrap is off.  The difference in the files depends if the EOFCHAR is either on or off.  I guess I'll just have to delete the EOF character manually.
 
Ted
-----Original Message-----
From: Jim Limburg [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 29, 2004 3:09 PM
To: [EMAIL PROTECTED]
Subject: [RBASE-L] - Re: SET EOFCHAR OFF

The new versions of notepad for W2k and XP automatically wrap.. You have to go to the
format menu and uncheck wrap. What's a pain is it doesn't always remember this setting if
I remember right, or it may be it only remembers is with same file that it has opened.. can't
recall at moment..

Jim

Ted Wolfley wrote:
Hi,

Using both 6.5++ and 7.  Opening in Notepad is where we notice the
difference, two other text editors show no wrapping. 

I am creating a empty file with the SET OUTPUT filename and using a cursor
with a while loop to append data that is in a variable with a write command.
In the loop, data of each record is added to the variable using the sput
function to create the correct column widths, append variable to file, fetch
new record.

I've tried placing the SET EOFCHAR OFF inside the loop but have the same
results. 

Ted

-----Original Message-----
From: Jim Limburg [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 29, 2004 9:34 AM
To: [EMAIL PROTECTED]
Subject: [RBASE-L] - Re: SET EOFCHAR OFF


Ted

1. What version of RBase are you using ?? Win - Dos ??

2. What are you opening the file in after it is created? Some text readers
    wrap even if you don't wan't them to.   Try opening it in Notepad and
    set wordwrap off.

3. Are you sending this info out through a report, or a standard SET OUTPUT
    filename? If you going through a report then you'll have to set the 
page
    to landscape and the paper to legal or maybe something longer depending
    on info length.

4. You comments make me think you are sending the info through a report, so
    here is what I suggest.. Based on Win65++, Create a new printer --
    depending on operating system the steps might be different ...
    Create a "Generic / Text Only" printer -- this willl be in the list
    of manufacturers. Set the settings for this printer to be landscape
    and paper to be legal as the default selections. Then use PRNSETUP
    and change to this printer before you start the report and see what
    your results are.

Jim

Ted Wolfley wrote:

  
Hi,
 
I am trying to create a fixed width text file that has a header and
detail section without a end-of-file character.  With SET EOFCHAR ON, 
the file is created correctly except for the end-of-file character at 
the bottom.  With SET EOFCHAR OFF, the file looks like it has 
word-wrap on with each record covering multiple lines. 
 
 The record line length is 962.
 

Ted Wolfley
Database/Internet Programmer
The Ogden Group of Rochester
phone: (585) 321 1060 x23
fax: (585) 321 0043
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>

www.ogdengroup.com <http://www.ogdengroup.com/>

 
    


  

Reply via email to