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



My original post is the "right" way to make this change...

But you could get tricky...

You could change the PR/PI to
d MyProc
d parm 100a const option(*varsize)
d parmSize 10i const option(*nopass)

Then in the code
if %parms() < 2;
wSize = 45;
else;
wSize = parmSize;
endif;

wParm = %subst(parm:1:wSize);

I wouldn't recommend doing it this way, but hopefully it helps you get
a better understanding of parameter passing.

Charles

On Fri, Mar 23, 2012 at 8:47 AM, Charles Wilt <charles.wilt@xxxxxxxxx> wrote:
You're correct in your belief that CONST is what is allowing this...

It's designed to allow you to do so when needed, which means it's your
responsibility to know you're doing it. :)

Changing the procedure is a bad idea....especially when there's a better way.

Basically
1) Rename existing procedure(MyProc --> MyProc_old) without changing PI
2) Move code to new MyProc with changed PI
3) MyProc_old simply calls MyProc
4) update binder language source, taking care to just rename the
existing MyProc line and adding a new one at the end and either leave
a hard coded signature alone or make use multiple ones with *PRV

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.