this

this

'this' is a reference to the current object. It is equal to 'Me'. There is often no technical need to use the this keyword, for it is implicit. Also, when using this, 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 this
   End Function
End Class

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

See also: