Print codes inside text on report (i.e. bold on/bold_off etc.)
Richard D. Williams
richard at appgrp.net
Thu Feb 13 12:59:39 PST 2020
Nancy,
These are declared variables that are used inside a prc. table, not
directly on a report format.
The array is on the "page" as,
i.e.
*ia
*ib
*ic
*id
The text is a long string containing actual fields or variables and is
wrapped into the array.
If you want to place a "Dear"<3 or a report, then I would use regular
print codes to make it bold.
This example is to put bold/underline inside a long string variable.
ia="I,"{hp_bold_on<3{hpbold_off<"live in Spring, TX."
Printed would be;
I, *Richard Williams* live in Spring, TX.
Richard
On 2/13/2020 12:16 PM, Nancy Palmquist via Filepro-list wrote:
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20200213/eec5a61b/attachment.html>
More information about the Filepro-list
mailing list