|
Hi Vern,array
That's not flexible (and how we often differ from other languages).
Instead of "match the data types and lengths"... it should be "an
of objects" (not to forget its methods !).me
In this respect, it amazes me that everyone is "distracted" by the
complete free format discussion, and doesn't even notice the real
wonderful things in Bobs article, being "DCL method" (hope his idea is
not limited to con/destructors alone) and the namespace issues it
immediately solves.
Like Simon wrote it in his post... I want the RPG developers to give
the stuff I CAN'T write. That's why we need other enhancements ratherof
than a bit more free format.
This doesn't mean that "complete" free format isn't important, but it
merely is something cosmetic in many cases, and once the C-statements
went to free format, it shouldn't have been an issue if more than one
statement is on a single line, or extends beyond position 80 (so it
amazes me that the steps taken in this context by IBM are always so
"partial").
Kind regards,
Paul
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Vern Hamberg
Sent: vrijdag 8 januari 2010 20:26
To: RPG programming on the IBM i / System i
Subject: Re: Passing parms between two programs
Hi Willie
Are you using RPG IV?
Well, you create ProgB with parameters that match the data types and
lengths of the screen fields in ProgA and then pass those values as
parms to ProgB when the user hits Enter - validate things as needed,
course.
In a /copy member, put a prototype for ProgB and /copy that member in
ProgA. For ProgB I suggest using a prototype at the main level instead
of an *ENTRY PLIST.
Piece of cake! I hope!
If you have too many values for the number of parms you can use, maybe
put them into a data structure. Then pass that as one parm. You canhave
arrays of values there, too.
Vern
Willie J. Moore wrote:
What I need to do is the following:entered data as parms. ProgB then prints a report.
ProgA displays a screen for data entry, then calls ProgB passing the
My problem is ProgA. I have the program display the entry screen. AndI can call ProgB. But how do I set up the parms to pass through to
ProgB?
Any help or examples would be appreciated.
Thanks,
William Moore
California Fine Wire
805-489-5144
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.