SyntaxMe DescriptionThe Me keyword represents a reference to the current class from within the class. Usage at a Glance
ExampleThis example shows how the Me keyword can be used to access class elements masked by local variables with the same name. Public Class TestClass Private sampleData As Integer Private Sub CheckTheData( ) Dim sampleData As String = "abc" Me.sampleData = 5 MsgBox(sampleData) ' Displays "abc" MsgBox(Me.sampleData) ' Displays "5" End Sub End Class See AlsoMyBase Keyword, MyClass Keyword |