|
----- Message from Paul Therrien <paultherrien@xxxxxxxxxxxxxxxxxx><rpg400-l@xxxxxxxxxxxx>
on Thu, 29 Mar 2018 10:13:07 -0400 -----
To:
"RPG programming on the IBM i (AS/400 and iSeries)"
thing i
Subject:
Re: interactive msg subfile
In my programs where I have done the same thing as you are doing, the
PGMNAMQ is the main program (I set this variable value in the mainline
of the program with the *PROC value of the Program Status Data
Structure.) And I set the SND_StkCnt = 0.
So when the sendmessage sub proc runs it is pointing the the call stack
entry of the main program and the relative stack count of the message
queue is 0 (i.e. the message queue of the main program).
Paul
On 2018-03-29 09:24, Jay Vaughn wrote:
So I don't like these, but thats a different story.
I am required to put them in my interactive pgm.
Other developers write the following call to the SendMessage in their
interactive pgm using a subroutine.
I like procedures, so I put mine in a procedure. This is the ONLY
thecan see different between theirs and mine, but mine will NOT display
themessage in the msg subfile at the bottom of the screen. If you view
tripping mejoblog, you see it there.
The snd_stkCnt is being set to 0, and I suspect this is what is
aup. Due to the fact that it is in a procedure ("mini pgm") instead of
luck.subroutine, the stack count is wrong. I tried setting to 1 with no
Can anyone shed some light on this?
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.