ecucurella
Programmer
Hi all,
Is there a way to know the function name to print this in a log file?
Now if there is an error I print:
...
If blnLog Then PrintToLog("ERROR|myfunctionname|" & err.number & "|" & err.Description & "|" & err.Source)
...
But I have to manually write the 'myfunctionname' in all of the functions I have in my project.
I need something like:
...
If blnLog Then PrintToLog("ERROR|"& function.name &"|" & err.number & "|" & err.Description & "|" & err.Source)
...
???
Thank you,
Is there a way to know the function name to print this in a log file?
Now if there is an error I print:
...
If blnLog Then PrintToLog("ERROR|myfunctionname|" & err.number & "|" & err.Description & "|" & err.Source)
...
But I have to manually write the 'myfunctionname' in all of the functions I have in my project.
I need something like:
...
If blnLog Then PrintToLog("ERROR|"& function.name &"|" & err.number & "|" & err.Description & "|" & err.Source)
...
???
Thank you,