main logo
Subject: Re: Method Name
Author: MB Software Solutions
Posted: 2007/07/31 15:04:53
 
View Entire Thread
New Search


Kent Belan wrote:
> Hello,
> Is there a way in a form method to know what method it was called from ?
> Thanks,
> Kent
>
>
>
>


(oops...forgot to show lnPgmLevel declaratio!)

Sure...it's in the stack. Here's a segment of code from my error
reporting that gets the stack info:

lnPgmLevel = program(-1)
&& echo call stack to error log
lcStack = "" && init
for lnLoop = 1 to lnPgmLevel
lcStack = lcStack + chr(9) + lower(sys(16,lnLoop)) + CRLF
endfor


--
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
"Work smarter, not harder, with MBSS custom software solutions!"





 
©2007 MB Software Solutions
<-- Prior Message New Search Next Message -->