Discussion:
Priting underline in 4gl
(too old to reply)
c***@gmail.com
2014-11-10 08:34:34 UTC
Permalink
Hi guys! I would like to know if you have an idea on how to print a underlined word in the report section of 4gl. thanks in advance :)
Ian Goddard
2014-11-10 11:06:55 UTC
Permalink
Post by c***@gmail.com
Hi guys! I would like to know if you have an idea on how to print a underlined word in the report section of 4gl. thanks in advance :)
Try this. Calculate length of word as n. Print word. Print n
backspaces. Print n underlines. Backspace is 08 in ASCII.
--
Ian

The Hotmail address is my spam-bin. Real mail address is iang
at austonley org uk
c***@gmail.com
2014-11-28 06:15:00 UTC
Permalink
Thanks man! It works :)
c***@northlandcorp.com
2014-12-01 17:43:48 UTC
Permalink
Post by c***@gmail.com
Hi guys! I would like to know if you have an idea on how to print a underlined word in the report section of 4gl. thanks in advance :)
Could you print a code sample please? I couldn't make it work.
Eric Vercelletto
2014-12-02 08:36:40 UTC
Permalink
Post by c***@northlandcorp.com
Post by c***@gmail.com
Hi guys! I would like to know if you have an idea on how to print a underlined word in the report section of 4gl. thanks in advance :)
Could you print a code sample please? I couldn't make it work.
Best is to have preset char variables, loaded from you custom printers table that you can use whenever necessary, i.e.:
LET bold_seq="sequence for BOLD for your printer"
( something like ascii(20),ascii(xx),ascii(zz) ) please read printer manual

LET end_bold_seq="sequence to terminate BOLD for your printer"
LET italic_seq="sequence for ITALIC for your printer"
LET end_italic_seq="sequence to terminate ITALIC for your printer"
LET underline_seq="sequence for UNDERLINE for your printer"
LET end_underline_seq="sequence to terminate UNDERLINE for your printer"
and all the change you may have to do then

PRINT bold_seq,"your strings etc...",end_bold_seq
etc...

You can fill this data in a table, one record per printer type, and load the data according to the printer type you chose.
Eric

Loading...