表紙へ

VB.NET

現在実行中のプロシージャ名を取得する

 

Public Function MyFunction() As String

    MsgBox(Reflection.MethodBase.GetCurrentMethod.Name)

End Function

この例では「MyFunction」と表示される。

 

 


VB6には同じ機能は用意されていません。