In code, is there a way to reference the name of the sub or function you are in? When an error messages is shown (using ex.ToString) it lists the various subs, so it knows the names, so I'm wondering if that's accessible to Visual Studio 2005 VB.NET code as well. Example...
Private Sub ProcessInvoices()
End Sub
In this sub, it is possible to refer to the name "ProcessInvoices"? (So if the sub name ever changes, then every place I refer to the sub name, it will automatically be the same?)
Private Sub ProcessInvoices()
End Sub
In this sub, it is possible to refer to the name "ProcessInvoices"? (So if the sub name ever changes, then every place I refer to the sub name, it will automatically be the same?)