|
Kurt Anderson wrote:
I've always done it (subprocedures, I don't do much with subroutines)
alphabetically - mainly because the outline will not alphabetize them -
and they're a pain to find otherwise. I believe the outline does
alphabetize subroutines (for whatever reason).
To which outline are you referring? The outline view of WDSC, or
something else? I'm a bit surprised by your comment about
non-alphabetized routines being difficult to find. Isn't that what find
functions are for? SEU, green screen debugger, LPEX and WDSC debugger
all have 'find this string in the source' tools.
I work similarly to Rory, in that I tend to put internal-only
subprocedures at the bottom of a source member, and for the same reason.
Within either group (exported or non-exported) I generally add new
subprocedures at the end of the group, unless they are closely related
to other existing subprocedures.
For example, if I had these subprocedures:
splitStringOnDelimiter()
rightJustifyString()
convertStringEncoding()
and I wanted to add a procedure to centre a string in a field, I'd add
it between rightJustifyString() and convertStringEncoding().
Hope this helps,
Adam
--
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 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.