× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




Hmmmmm . . . . . The elipsis is a good idea



Alan Shore

NBTY, Inc
(631) 244-2000 ext. 5019
AShore@xxxxxxxx


                                                                       
             Booth Martin                                              
             <booth@xxxxxxxxxx                                         
             om>                                                        To
             Sent by:                  RPG programming on the AS400 /  
             rpg400-l-bounces@         iSeries <rpg400-l@xxxxxxxxxxxx> 
             midrange.com                                               cc
                                                                       
                                                                   Subject
             06/13/2006 04:14          Re: Word wrapping               
             PM                                                        
                                                                       
                                                                       
             Please respond to                                         
              RPG programming                                          
              on the AS400 /                                           
                  iSeries                                              
             <rpg400-l@midrang                                         
                  e.com>                                               
                                                                       
                                                                       




I did this one time in this fashion: I tested the length of the trimmed
field.  If it was more than, say, 40 characters, I substringed the first
37 characters, plus an elipsis, as a signal to the user that the field
was in fact longer than the screen would hold.  It worked in that
situation because they rarely went over 25 or so characters.


Alan Shore wrote:
I was thinking somewhat along the same lines. Displaying the first 40
characters of the 180 character field, and then when a new record needs
to
be added, or a present record needs to be modified/changed, displaying
that
action to ONE record in another window, and using WRDWRP  and/or CNTFIELD
within that one record window



Alan Shore

NBTY, Inc
(631) 244-2000 ext. 5019
AShore@xxxxxxxx




             Booth Martin

             <booth@xxxxxxxxxx

             om>
To
             Sent by:                  RPG programming on the AS400 /

             rpg400-l-bounces@         iSeries <rpg400-l@xxxxxxxxxxxx>

             midrange.com
cc



Subject
             06/13/2006 03:44          Re: Word wrapping

             PM





             Please respond to

              RPG programming

              on the AS400 /

                  iSeries

             <rpg400-l@midrang

                  e.com>









At 70 or so characters per line you won't be fitting many subfile
records on the screen at one time.

Would it make sense to just show a window that displays one record and
enable the page up/down keys so you can page through your data with the
page keys?




Alan Shore wrote:
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

--
---------------------------------
Booth Martin
http://www.Martinvt.com
---------------------------------
--
This is the RPG programming on the AS400 / iSeries (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.




------------------------------------------------------------------------

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.3/362 - Release Date: 6/12/2006

--
---------------------------------
Booth Martin
http://www.Martinvt.com
---------------------------------
--
This is the RPG programming on the AS400 / iSeries (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 thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.