× 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.



Here's a method I have used successfully.
 
Create a data structure of all your subfile fields and put the data
structure in your subfile as a hidden field.   
 
Then, you can do a for/endfor loop and check every record for changes.  Much
simpler and solves the problem.  In addition a F5=Refresh is really easy,
too.
 
 
---------------------------------
Booth Martin
http://www.martinvt.com
---------------------------------
-------Original Message-------
 
From: Douglas W. Palme
Date: 12/02/05 14:00:43
To: RPG Group
Subject: Proper handling of subfiles
 
I have a question that has bothered me for sometime now, regarding how to
properly handle entry in a subfile.
 
I will attempt to put this into context of a three field subfile containing
ten rows.
 
All three fields are type ALPHA, 5 characters in length....
 
Using RPG I can check the subfile to see if there were any records that were
changed, IE: added and can then verify the data before writing it to the
file.  In theory that is fandamntastic.  However what is the proper way to
handle say the second row of data where the user initially entered something
and then decided naw, isn't needed or was a mistake so they removed it.
 
If I understand how the next changed record works, it will come up with both
lines 1 and 2 even though 2 really has not been changed.....IE: no data
contained within.
 
Suggestions?  Or do I need to check each possible line and if there is no
data, end the processing.
 
Douglas
 
If you bought it, it was hauled by a truck - somewhere, sometime.
 
--
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.