HP Boldface On/Off mid field on output (conditional print code)

Richard D. Williams richard at axzas.com
Thu May 21 11:13:50 PDT 2009


Joe,

Try this:

declare 
hp_ul_on;hp_ul_on=chr("27"){chr("38"){chr("100"){chr("51"){chr("68"){""

declare hp_ul_off;hp_ul_off=chr("27"){chr("38"){chr("100"){chr("64"){""

declare hp_bold_on;hp_bold_on= 
chr("27"){chr("40"){chr("115"){chr("51"){chr("66"){""

declare hp_bold_off;hp_bold_off= 
chr("27"){chr("40"){chr("115"){chr("48"){chr("66"){""

i.e. useage:
invline(n)=hp_ul_on&hp_bold_on&z&hp_ul_off&hp_bold_off

Richard D. Williams


Joe Chasan wrote:

>I need to turn bold on/off mid field of a form on which there are other
>fields & graphic box characters on the same printed line.
>
>i thought that it might be easy - in simple terms:
>
>declare local bold_on; bold_on=bold_on=chr("27")&"(s3B"
>declare local bold_off; bold_off=chr("27")&"(s0B"
>
>and 
>if: some_condition
>then: aa=bold_on & aa & bold_off
>
>output
>
>*1    *aa     *2
>
>but the problem i have is that if bold on/off is triggered, then
>*2 is squashed over to left.
>
>any idea of how to fix?  padding it with blanks did it seem to help
>and there is no room on form to overcompensate.  there is also no way
>to just use different lines on output depending on bold on/off needs
>
>aa is of edit type "*".
>
>failing a simple solution i'm going to have fix via tab-stops.
>
>--
>-Joe Chasan-                           Magnatech Business Systems, Inc.
>joe - at - magnatechonline -dot- com   Hicksville, NY - USA
>http://www.MagnatechOnline.com         Tel.(516) 931-4444/Fax.(516) 931-1264
>_______________________________________________
>Filepro-list mailing list
>Filepro-list at lists.celestial.com
>http://mailman.celestial.com/mailman/listinfo/filepro-list
>
>  
>
>------------------------------------------------------------------------
>
>
>No virus found in this incoming message.
>Checked by AVG - www.avg.com 
>Version: 8.5.339 / Virus Database: 270.12.36/2126 - Release Date: 05/21/09 06:22:00
>
>  
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20090521/232ddae1/attachment-0001.html 


More information about the Filepro-list mailing list