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

Richard D. Williams richard at appgrp.net
Thu Feb 13 08:57:20 PST 2020


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>


More information about the Filepro-list mailing list