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 |