|
I am using a print file to print names that can be a maximum length of 66
bytes.
A co-worker tells me that you can somehow know how much space a name takes
up, even though the print is proportional.
He also said he did not have any more information on that, just heard you
could do it.
So if the first name occupies the full line, you would test and advance to
the next line.
If it does not take up the full line, you can test the next name and see if
they can both fit on the same line.
THIS NAME TAKES UP THE FULL LINE OF PRINT WWWWWWWWW YES IT DOES
THIS IS A SHORTER NAME THIS IS ANOTHER SHORTER NAME
Easy when you use CPI, but I suspect my co-worker wants to make me look
stupid, forever engraved in cyber space, thinking you
can somehow test how much space is used in proportional printing.
TIA
Tom Deskevich
INFOCON
814-472-6066
Fax 814-472-5019
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
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.