Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Foxplus printing using ? in SCO Unix - page ejects after each line

Status
Not open for further replies.

mduddytel

Programmer
Mar 25, 2014
23
US
We have some print programs that have suddenly stopped working after many years of being just fine. Might be related to newer printers.

The Foxplus programs us ? to output each line, including a font code in the output line to change for titles, subtotals, etc. Recently some (but certainly not all) of these programs have started ejecting the page after each line is printed. Fonts seem to print fine, nothing garbled and output is correct.

But each new line is printed on a new page, on the line it would have been at on the original page. Changing the fonts doesn't seem to make a difference. We can use report in Foxplus but lose some functionality that way.

Any ideas? TIA for your help.
 
Yes, some otherwise generic functions or calls need to be very sure of the environment - PRINTER, TALK, EXACT, NEAR, etc. As you discovered, if it could be called while printing then it needs to be able to detect and handle that scenario. Or replaced with a simpler and more robust alternative.

I recall one day all our users of a certain app started having errors. Turned out that a common subroutine had used a loop variable without first declaring it PRIVATE. It worked for years because no code called it while using that variable name. One day code was modified and that variable name existed when clling the subroutine. Oops. Fortunately it wasn't my change, it was the team leader's. So we then went through all our common functions and made sure all variables that should have been private were so declared.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top