convert printer code to string of chr()

Brian K. White bw.aljex at gmail.com
Mon Jul 12 09:48:26 PDT 2021


Why bother with chr for anything but esc?
Also if I'm going to be using a chr multiple times I like to define a 
small dummy just for the problem character
e = chr("27")
...
cpi = prefs(54)
...
ci = e { "(s" { cpi { "H"

"(" isn't one of the chars that needs any special handling.

If there is any problem with that, it must be with some subsequent 
handling of the string. But if you just did this and stuck *ci on the 
form somewhere, it should work fine.

-- 
bkw


On 7/12/21 12:21 PM, Richard D. Williams via Filepro-list wrote:
> I need to change print codes for font size within a string.
>
> I can do it for bold on, bold off, underline on, underline off;
>
> bold on:
> declare hp_bold_on;hp_bold_on= 
> chr("27"){chr("40"){chr("115"){chr("51"){chr("66"){""
>
> bold off:
> declare hp_bold_off;hp_bold_off= 
> chr("27"){chr("40"){chr("115"){chr("48"){chr("66"){""
>
> underline on:
> declare 
> hp_ul_on;hp_ul_on=chr("27"){chr("38"){chr("100"){chr("51"){chr("68"){""
>
> underline off:
> declare hp_ul_off;hp_ul_off=chr("27"){chr("38"){chr("100"){chr("64"){""
>
>
> but I am having a difficult time with these codes;
>
> $1b ( s 10 H
>
> $1b ( s 12 H
>
> $1b ( s 16.6 H
>
> I guess part of my problem is the parenthesis.
> Can any one help me out?
>
> Richard D. Williams
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list



More information about the Filepro-list mailing list