This is a multi-part message in MIME format.

------=_NextPart_000_0006_01C5A04B.7CB0CC80
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

All - How can I tell / extract the name of the sub or function that is =
creating an error? I'd like to extract this so I can write an event and =
include the sub name in the error text without having to go to every =
error handling statement and adding the sub as a string.

Thanks,
Brian

------=_NextPart_000_0006_01C5A04B.7CB0CC80
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2668" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>All - How can I tell / extract the name =
of the sub=20
or function that is creating an error? &nbsp;I'd like to extract this so =
I can=20
write an event and include the sub name in the error text without having =
to go=20
to every error handling statement and adding the sub as a =
string.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Brian</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0006_01C5A04B.7CB0CC80--

Re: Sub / Function Name & Error Handeling by Herfried

Herfried
Sun Aug 14 03:09:25 CDT 2005

"Brian P. Hammer" <bhammer@le "DASH" aviation.com> schrieb:
>All - How can I tell / extract the name of the sub or function that is
>creating an error? I'd like to extract this so I can write an event and
>include the sub name in the error text without having to go to every error
>handling statement and adding the sub as a string.

'MethodBase.GetCurrentMethod().­Name'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


Re: Sub / Function Name & Error Handeling by Metallikanz!

Metallikanz!
Sun Aug 14 04:59:00 CDT 2005

This is a multi-part message in MIME format.

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

Make use of the TargetSite and Source properties of the exception type =
to determine the method and the name of the app that caused the =
exception.

HTH, Metallikanz!
"Brian P. Hammer" <bhammer@le "DASH" aviation.com> wrote in message =
news:OVVypVHoFHA.2540@TK2MSFTNGP15.phx.gbl...
All - How can I tell / extract the name of the sub or function that is =
creating an error? I'd like to extract this so I can write an event and =
include the sub name in the error text without having to go to every =
error handling statement and adding the sub as a string.

Thanks,
Brian

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2668" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DVerdana size=3D2>Make use of the TargetSite and Source =
properties=20
of the exception type to determine the method and the name of the app =
that=20
caused the exception.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DVerdana size=3D2>HTH, Metallikanz!</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Brian P. Hammer" &lt;<A =
href=3D"mailto:bhammer@le">bhammer@le</A> "DASH"=20
aviation.com&gt; wrote in message <A=20
=
href=3D"news:OVVypVHoFHA.2540@TK2MSFTNGP15.phx.gbl">news:OVVypVHoFHA.2540=
@TK2MSFTNGP15.phx.gbl</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>All - How can I tell / extract the =
name of the=20
sub or function that is creating an error? &nbsp;I'd like to extract =
this so I=20
can write an event and include the sub name in the error text without =
having=20
to go to every error handling statement and adding the sub as a=20
string.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Brian</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2></FONT>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0060_01C5A0E4.E4F58350--