
Form, module, class and sub or function names at runtime
This is a multi-part message in MIME format.
------=_NextPart_000_01BCE556.9BDF92C0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Hi,
I was wondering if anybody knew of a way to get the sub or function name
and the module or form name of where execution is at runtime. I can use
me.tag if I use tag in my forms but what can I do for modules, what ( if
anything ) can I do for subs and functions?
If I had this information I could write a generic error call and put it in
all of my routines. This error call would write various pieces of
information to file, I can get the user name and Computer name now thanks
to Chads post. But is there a way without hard coding to get the sub or
function name and the module or form name at run time?.
By the way I've just written a groovy little exe which I find amazingly
useful every so often. Here's the source code.
sub main()
clipboard.clear
clipboard.settext command()
end sub
Put this in a module and compile without any forms
Copy the exe to a utils folder
Put a shortcut to it in your windows 'send to' folder called "Copy Path"
No more typing command lines into the propoerties dialogues of shortcuts
anymore!
Cheers in advance
Andy M
------=_NextPart_000_01BCE556.9BDF92C0
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<html><head></head><BODY bgcolor=3D"#FFFFFF"><p><font size=3D2 =
color=3D"#000000" face=3D"Courier">Hi, <br><br>I was wondering if =
anybody knew of a way to get the sub or function name and the module or =
form name of where execution is at runtime. I can use me.tag if I use =
tag in my forms but what can I do for modules, what ( if anything ) can =
I do for subs and functions? <br><br>If I had this information I could =
write a generic error call and put it in all of my routines. This error =
call would write various pieces of information to file, I can get the =
user name and Computer name now thanks to Chads post. But is there a way =
without hard coding to get the sub or function name and the module or =
form name at run time?.<br><br><br><br>By the way I've just written a =
groovy little exe which I find amazingly useful every so often. Here's =
the source code.<br><br>sub =
main()<br><br>	clipboard.clear<br>	clipboard.settext =
command()<br><br>end sub<br><br>Put this in a module and compile without =
any forms<br>Copy the exe to a utils folder<br>Put a shortcut to it in =
your windows 'send to' folder called "Copy Path"<br><br>No =
more typing command lines into the propoerties dialogues of shortcuts =
anymore!<br><br>Cheers in advance<br><br>Andy M</p>
</font></body></html>
------=_NextPart_000_01BCE556.9BDF92C0--