[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Need Help with Printing Bold Characters



Here's the solution:


 let #tote = &e - &e1
 let #totf = &f - &f1
 let $e1=edit(&e1,'999,999,999')   <do the edit mask here
 let $f1=edit(&f1,'999,999,999')

 print 'XXXXXXXXXXXXXXXXXXXXXXXXX' (+1,1)
 print &e (,37) edit 999,999,999
  if &e1 != &f1
   print $e1 (,55) bold
  else
   print $e1 (,55)
  end-if
 print #tote (,73) edit 999,999,999

IT WORKS!!!

Thanks for the assistance, everyone!

RF


> -----Original Message-----
> From: Rick Fox [mailto:Rick.Fox@wcom.com]
> Sent: Thursday, December 16, 1999 9:03 AM
> To: 'SQR-USERS@LIST.IEX.NET'
> Subject: Need Help with Printing Bold Characters
>
>
> I have a simple program with a problem.  Please consider the
> code below:
>
> **************************************************************
> **********
>
> begin-setup
> declare-layout default
> end-declare
> declare-report aa
>  layout=default
>  printer-type=ht
> end-declare
> end-setup
>
> .
> .
> Program body
> .
> .
>
>  let #tote = &e - &e1
>  let #totf = &f - &f1
>
>    print 'AAAAAAAAAAAAAAAAAAAAAAAAA' (+1,1)
>    print &e (,37) edit 999,999,999
>    print &e1 (,55) edit 999,999,999
>  if &e1 != &f1                                ]
>    print &e1 (,55) edit 999,999,999 bold      ] Problem area
>  end-if                                       ]
>    print #tote (,73) edit 999,999,999
>
>  if &e1 != &f1
>    print 'WARNING: Tables are out of balance' (+1,30) bold
>  end-if
> .
> .
> **********************************************************************
> The problem is that the first "if" WILL print out the line of
> data, as
> expected, (because the condition is true).  BUT, it will NOT print it
> out in BOLD!  I am using a font that is "boldable", and in fact, the
> second "if", the one with the WARNING, works just fine.
>
> I have tested the "if" condition to be sure it was working properly in
> all other respects, and it is.  So...can anyone tell me why
> this isn't
> bolding???
>
> Thanks
>