Mega Search
23.2 Million


Sign Up

Make a donation  
Priting underline in 4gl  
News Group: comp.databases.informix

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 :)

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 10-Nov-2014, at 12:34 AM EST
From: m
 
Re: Priting underline in 4gl  
News Group: comp.databases.informix
Le lundi 1 décembre 2014 18:43:49 UTC+1, con...@northlandcorp.com a écrit :
> On Monday, November 10, 2014 3:34:37 AM UTC-5, chua.i...@gmail.com wrote:
> > 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

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 2-Dec-2014, at 12:36 AM EST
From: Eric Vercelletto
 
Re: Priting underline in 4gl  
News Group: comp.databases.informix
On Monday, November 10, 2014 3:34:37 AM UTC-5, chua.i...@gmail.com wrote:
> 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.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 1-Dec-2014, at 9:43 AM EST
From: m
 
Re: Priting underline in 4gl  
News Group: comp.databases.informix
Thanks man! It works :)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 27-Nov-2014, at 10:15 PM EST
From: m
 
Re: Priting underline in 4gl  
News Group: comp.databases.informix
On 10/11/14 08:34, chua.isaac23@gmail.com wrote:
> 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

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 10-Nov-2014, at 11:06 AM EST
From: Ian Goddard