Print codes inside text on report (i.e. bold on/bold_off etc.)

Nancy Palmquist nancy.palmquist at vss3.com
Thu Feb 13 10:16:18 PST 2020


Richard,  Are you missing some quotes?  z=""{*hp_bold_on*{"This is bold"

As far as I understand, the asterisks are a little out of place in this 
line.  Could you explain?  The variable was displayed in bold in my 
read, and I am familiar with the codes that start with * but I think 
they should not be part of your string when programming this.  BTW nice 
note.

Nancy

On 2/13/2020 11:57 AM, Richard D. Williams via Filepro-list wrote:
> Did you ever want to make text bold or underlined inside a text 
> variable on a form or report and this was not in a set position?
>
> I often take long text strings that contain field values and wrap them 
> into an array of variables on a form.
> Sometimes there are sections or values I want bold or underlined.
>
> This is how I do it.
>
> if    :
> then  : declare 
> hp_ul_on;hp_ul_on=chr("27"){chr("38"){chr("100"){chr("51"){chr("68"){"":
> if    :
> then  : declare 
> hp_ul_off;hp_ul_off=chr("27"){chr("38"){chr("100"){chr("64"){"":
> if    :
> then  : declare hp_bold_on;hp_bold_on= 
> chr("27"){chr("40"){chr("115"){chr("51"){chr("66"){"":
> if    :
> then  : declare hp_bold_off;hp_bold_off= 
> chr("27"){chr("40"){chr("115"){chr("48"){chr("66"){"":
> if    :
> then  : z=""{*hp_bold_on*{"This will be 
> bold."{*hp_bold_off*{*hp_ul_on*<"This will be underlined."{*hp_ul_off*
>
> This is just an example.
>
> Just an FYI
>
> Richard D. Williams
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <http://mailman.celestial.com/pipermail/filepro-list/attachments/20200213/7c29a363/attachment.html>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list

-- 
Nancy Palmquist         MOS & filePro Training Available
Virtual Software Systems    Web Based Training and Consulting
PHONE: (412) 835-9417           Web site:  http://www.vss3.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20200213/ae2e723a/attachment.html>


More information about the Filepro-list mailing list