|
Fellow Midrange Geeks:
My first (and so far, only) project involving both an
externally-described print file and AFPDS keywords is going rather well,
but it could be a lot better if I could determine the set-width of a
character string, in the font in which it is presented.
There are numerous fields that have too little space on the page to
accommodate the full field length, in which I'm applying variable
horizontal scaling, based on the RPG %LEN(%TRIM()) of the field. They'd
work a lot better if I could calculate the horizontal scaling from the
actual set-width.
One of those fields, in addition, is one where it would be nice if, for
values that take up less than the available space even without
horizontal scaling, I could accurately center the value (which of course
can't be done without knowing the set-width.
Surely I'm not the first one in this position?
--
JHHL
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.