Form, module, class and sub or function names at runtime 
Author Message
 Form, module, class and sub or function names at runtime

This is a multi-part message in MIME format.

------=_NextPart_000_0067_01BCE532.1E0152E0
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Using the underlying OLE infrastructure, you can query an object's =
interfaces to determine the methods and attributes.  Check out =
www.kenai.com

------=_NextPart_000_0067_01BCE532.1E0152E0
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.71.1712.3"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>Using the underlying OLE =
infrastructure, you can=20
query an object's interfaces to determine the methods and =
attributes.&nbsp;=20
Check out <A =
href=3D" http://www.*-*-*.com/ ">www.kenai.com</A></FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0067_01BCE532.1E0152E0--



Mon, 17 Apr 2000 03:00:00 GMT  
 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>&#009;clipboard.clear<br>&#009;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 &quot;Copy Path&quot;<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--



Mon, 17 Apr 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Retrieve name of Function, Sub, Class, Property etc from within that item during runtime

2. Retrieve name of current sub/function and name of current module

3. Returning sub or function name within a specific sub or function

4. Enumerate through a Class module function names.

5. Passing Value from Module Function to Form sub problem

6. Returning the name of a module/class module

7. Calling a Function in an MS Access Class/Form/Module from an outside application

8. Automatic capitalization of variable names, type names, subs and functions

9. Q: Code Module vs UserControl (Form, Class) module.

10. Q: Code Module vs UserControl (Form, Class) module.

11. Q: Code Module vs UserControl (Form, Class) module.

12. Sub Property in Class module

 

 
Powered by phpBB® Forum Software