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
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.
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