|
Alan, I would just pretend it's a page-at-a-time sub file. You can monitor for the page keys (using indicator, hex value from INFDS or %STATUS(DSPF) = 1123(up)/1122(dn)). Internally to the program maybe use a data structure array based on the database record, dimmed the number of lines on the screen or dimmed at max size and then pointed to a user space that is loaded with the text data. Alternatively look at a product called Document Integrator, we use it for most cases where we want users to enter notes. It has this same feature you are looking for plus more. Check it out for at least some inspiration. ( http://www.seacrest.com/proddi.asp ) Their basic edit API we use is just a bunch of lines that each have CHECK(ER) assigned and then they check perform word wrapping code within the API. Thanks, Matt -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Alan Shore Sent: Tuesday, June 13, 2006 12:53 PM To: rpg400-l-bounces@xxxxxxxxxxxx; RPG400-L@xxxxxxxxxxxx Subject: Word wrapping Afternoon all, I have a sub-file that I am displaying data from a file. Part of this data is a field that is 170 characters. I need to display and accept the data. In my search, I have discovered 2 keywords, within DDS that would seem to fit the bill. These words are CNTFIELD (continued field) and WRDWRAP. Bob Cozzi has posted an article about these 2 fields at http://www.mcpressonline.com/mc?50@xxxxxxxxxxxxxxxxx@.6b16d290 When I read this article, I pumped my fist in the air. This is exactly what I was looking for, but as usual, my glee was short-lived. These keywords do NOT work with sub-files. My question is as follows. Does anyone know of equivalent sub-file keywords? or Does anyone have a procedure applicable for a sub-file, that would do the same thing? Thanks in anticipation Alan Shore NBTY, Inc (631) 244-2000 ext. 5019 AShore@xxxxxxxx
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.