CC: Re: HP Boldface On/Off mid field on output (conditional prin

Jose Lerebours fp at fpgroups.com
Thu May 21 10:58:33 PDT 2009


Jim Asman wrote:
> --------------- Original Message ---------------
> At 12:34P Thu May 21 2009, 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.
>>     
>
> You will have to fix it with tab stops if the bold comes in a variable.
>
> The printer will interpret the PCL code, but of course filepro views it
> as normal data. The beauty of the tab stop is that you only need to
> place it under the first affected field.
>
>
>   
Jim,

What would then be the solution if the BOLD string is dynamic and one 
does not know where
exactly on the form it may fall.

For example, if I have variable aa and I intend to BOLD a substr() of aa 
conditionally and there
is no telling where within aa the substr() may be.

How then can I do this?  I have never done this in filePro but have 
always wondered.  I recall
doing something similar in DBase II and Clipper a few years back (OK, 
about 18 years ago).

Regards,

-- 

Jose Lerebours
http://www.fpgroups.com
(954) 559-7186
fp at fpgroups.com
fpgroups at gmail.com
PHP & filePro Custom Solution Provider


More information about the Filepro-list mailing list