Are longer than 80 character output lines possible?

I need to create an output file with 120 continuous characters without a line break. True Basic appears to automatically insert a line break after about 80 characters when using PRINT. I attempted to increase the length of the output line to 120 by using SET #2: ZONEWIDTH 120, but I got an out of range error for the zonewidth value of 120. I incrementally decreased my zonewidth parameter, and it appears 80 is the maximum of the allowed range for that parameter.

Is there anyway to prevent True Basic from deciding it knows better than you do what the maximum line length should be in your output files?

Thanks.

Comments

Hi, In the editor there is a

Hi,

In the editor there is a menu item called preferences. Click on this and then select printer settings. Under printer settings you can define characters per line (default 80) and lines per page (default 60).

Alernatively, with NOTEPAD you can read the file called TBEDITS.CFG. The eighth item is the list of preferences is shown as 80/60. You can manually change this to say 120/60 or whatever you want, and then save the file. This file is scanned by the editor at start up in order to set all the preferences.

Regards
BigJohn

80 chr output

Hi
You must first set the ZONEWIDTH equal/less than the desired output length, then SET MARGIN to what you want. Try the following code.
Making #2 a file instead of the printer should behave the same way.

---------------------
option nolet

s$=repeat$("Xx",60) ! a 120 character long string

minmar=19 ! a MINIMUM MARGIN, <= the STRING LENGTH you want to display.
! If MARGIN < ZONEWIDTH, an ERROR results

SET ZONEWIDTH minmar ! set the zonewidth to that

OPEN #2: printer
SET #2: margin minmar ! also set it on the printer

print "SET ZONEWIDTH is set to: "&str$(minmar)
print

PRINT #2: "SET ZONEWIDTH is set to: "&str$(minmar)
PRINT #2:

FOR i=20 to 120 step 10

SET MARGIN i ! set the MARGIN setting to desired DISPLAY LENGTH
print "SET MARGIN is set to:"&str$(i)
print s$
print

SET #2: margin i ! on the printer also
PRINT #2: "SET MARGIN is set to:"&str$(i)
PRINT #2: s$
PRINT #2:

NEXT i

stop
END
------------------------

Hope this helps.
Regards, Mike C.