Me

Me

Me is a reference to the current object. It is equal to 'this'. There is often no technical need to use the Me keyword, for it is implicit. Also, when using Me, you can only access the public available methods and properties.

The main use-case is when you call a function and want to pass a reference to the calling object

Class MyClass
   Public Name As String
   
   Public Function Test
       PrintName Me
   End Function
End Class

Public Function PrintName(pObject)
   SendDebug pObject.Name
End Function

See also: