Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 21 AUG 2001 11:58:47AM Mike O'Neal wrote:

Hello all:

I'm guessing this is an easy one, but darned if I can find the answer anywhere…

Can anyone tell me how to determine which Event launched a specific stored procedure? Context is that I need to run *almost* (but not quite) the same code from both POSCHANGED and GOTFOCUS on an edit table. If I know where it came from I can just add a couple of CASE statements to deal with the slight variation.

Thanks much,

Mike O.


At 21 AUG 2001 02:44PM Don Miller C3 Inc. wrote:

David P. posted this a short while ago. You might want to check it out:

http://www.revelation.com/WEBSITE/DISCUSS.NSF/4539f515a2139aa98525652c004759c0/9056D36F7390D6E285256AAB0049DA69?OpenDocument

Don Miller


At 21 AUG 2001 04:44PM Mike O'Neal wrote:

Hi Don:

] declare function retstack

] procname=retstack()

Thanks for the response, but not quite it… the above gives me the name of the subroutine itself, but it doesn't tell me where it came from. That is, if the subroutine is called MY_PROG, I need to know if MY_PROG was called from a POSCHANGED event or from a GOTFOCUS event.

Make sense?

Mike O.


At 22 AUG 2001 03:20AM Oystein Reigem wrote:

Mike,

RetStack returns more than the name of the current procedure. It also returns the name of the procedure that called the current one, etc. Try

TheNameOfTheCallingProc=RetStack()

- Oystein -

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/65880e225e5bd62085256aaf0057c7c6.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1