Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 07 JUL 1998 06:41:06PM Wayne Curzadd wrote:

I have a program that calls an AREV paint window with a catalyst code and command. The window has a supporting subroutine that performs initialization processes, pre & post prompt processes, etc. Let's call it SUB-A. A parameter is passed in the code / command process that controls what happens in the subroutine with a CASE statement. One process attached to a softkeys prints a report of the record. Every other process works fine except the printing routine which calls other external subroutines. Including all chained external calls, the printing process can be three external subroutines deep from the supporting window routine. So SUB-A calls SUB-B which calls SUB-C, etc.

When the process finally returns to the original SUB-A program an hits the RETURN command it should return control to the window processor. Instead it returns to the main program after the window catalyst call then ends. One of the biggest problems is the record is never unlocked by the window process. I didn't check all but most the common window variables look OK. Am I missing something? Have tried temporary variables in subroutine and then reset after return but did not work.

Any help would be greatly appreciated.


At 08 JUL 1998 12:00AM B.Fernandes wrote:

Make sure you are not executing a "Stop" anywhere in that loop. Also check to make sure your common variables: @ID, @RECORD,@DICT are not being reassigned somewhere else and when it returns, it bombs because it can't find what it expects to see.


At 08 JUL 1998 12:39AM Curt Putnam wrote:

In addition to the other suggestions, make sure that you don't have a stray return on the stack somewhere.


At 08 JUL 1998 06:40AM Tony Marler @ Prosolve wrote:

Can you put a debug in the code at end of SUB A to ensure that it is actually coming back down the chain and not jumping out somewhere.

If it is returning correctly, then are you setting a Window Common variable(s) causing the window to close ?

Tony


At 10 JUL 1998 10:53AM Wayne Curzadd wrote:

Subroutine return properly to SUB-A have checked that. Also no extra returns or stop command. @id and @record are set to temporary variables and reset after return from SUB-B. Only one return in subroutine after case statement. All other CASE statements use same return command. Did not check @DICT, will do that.

Thanks,

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/1b9d7734437420128525663a007c9d04.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1