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



Are the two parameter in procedure coded as a CONST?


5 >>> I have a program that has two internally defined procedures.
5 >>>
5 >>> Procedure #1 has two fields as input parameters, FIELDA and FIELDB,
both
5 >>> defined as CONST. In Procedure #1, the two input fields are moved
into
5 >>> two fields on a screen called SFIELDA and SFIELDB. If certain
conditions
5 >>> are met, Procedure #1 calls Procedure #2. In Procedure #2, the two
screen
5 >>> fields, SFIELDA and SFIELDB, are cleared. I noticed that the fields
5 >>> passed into Procedure #1, FIELDA and FIELDB are getting cleared at
the
5 >>> same time. I put the program in debug and verified this.
5 >>>
5 >>> How is this possible? First of all, I thought if a parameter to a
5 >>> procedure was defined as CONST, it couldn't be changed. I have
searched
5 >>> through the program to make sure there were no datastructures, etc.
that
5 >>> might be overlaying the fields and the DDS for the screen to make
sure
5 >>> the procedure parameters are not defined on a screen.
5 >>>
5 >>> Any advice and/or help would be greatly appreciated.
5 >>>
5 >>> Thanks,
5 >>>
5 >>> Robert
5 >>> --
5 >>> This is the RPG programming on the IBM i / System i (RPG400-L)
mailing
5 >>> list
5 >>> To post a message email: RPG400-L@xxxxxxxxxxxx
5 >>> To subscribe, unsubscribe, or change list options,
5 >>> visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
5 >>> or email: RPG400-L-request@xxxxxxxxxxxx
5 >>> Before posting, please take a moment to review the archives
5 >>> at http://archive.midrange.com/rpg400-l.
5 >>>
5 >>>



HCSC Company Disclaimer

The information contained in this communication is confidential, private,
proprietary, or otherwise privileged and is intended only for the use of
the addressee. Unauthorized use, disclosure, distribution or copying is
strictly prohibited and may be unlawful. If you have received this
communication in error, please notify the sender immediately at (312)
653-6000 in Illinois; (800)835-8699 in New Mexico; (918)560-3500 in
Oklahoma; or (972)766-6900 in Texas.

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.