🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.databases.ingres
1 messages
1 total messages Started by ars_mgr@nhqvax.h Sat, 13 Jul 2013 11:34
Re: RW question, how do you underline a whole line?
#3509
Author: ars_mgr@nhqvax.h
Date: Sat, 13 Jul 2013 11:34
36 lines
1520 bytes
In  <1993Jul12.215839.12516@tpghq.com>  sfc@tpghq.com (Steve Caswell) writes:
| In article <21he0r$l0l@senator-bedfellow.MIT.EDU> gconway@athena.mit.edu (Graham
| >Hi,
| >
| >I was wondering if anyone knew how to underline a whole line of a report
| >including the white space and punctuation?

[stuff deleted]

| Try:
| ..PRINT "-------------------------------------------------------------------"
| ..NEWLINE
|

The problem with this approach is that it assumes you are using dashes for
underlining, taking up another line on the report and not taking advantage
of true underlining.  This is an example of how to fully underline a character
field.  A little imagination could take this much further:

detail
    .ul
    .print left("_______________________________",length(my_char_field))
    .tab 0
    .print my_char_field

What ends up happening is when you print the second field over the first,
ReportWriter just writes characters in the second field which are nonblank.
Ie., print "XXX" .tab -3 .print " Y ", would produce XYX on the printed page.
The underscores printed out first have the effect of underlining the entire
field and then printing over top over top of them with underline on works as
in the example.  I don't know if this is foolproof but it worked in a test case....

David L. Tondreau, Jr. |   ars_mgr@nhqvax.hq.nasa.gov   | Don't "Just do it."
Managing Consultant    | dtondreau@aeromail.hq.nasa.gov | Do it right.
LCT, Inc.              |        (202) 554-0115          | The first time.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads