Who Called Function?
Posted: Sun Jul 12, 2009 10:12 pm
Hi Folks,
I am new to Revolution and was wondering if there is a way in a function to tell who called the function (i.e. I want to see the current call stack)?
I have a function that finds the correct connected database and returns its ID to the caller. If for some reason the database is not connected I want to consider it to be a logic error and notify the user of the error with information that would be useful to me (the developer) so I can more easily figure out why the error happened (not that I ever expect it to happen but I do tend to program defensively).
Thanks, Brian
I am new to Revolution and was wondering if there is a way in a function to tell who called the function (i.e. I want to see the current call stack)?
I have a function that finds the correct connected database and returns its ID to the caller. If for some reason the database is not connected I want to consider it to be a logic error and notify the user of the error with information that would be useful to me (the developer) so I can more easily figure out why the error happened (not that I ever expect it to happen but I do tend to program defensively).
Thanks, Brian