LotusScript has the keyword Me
to refer to the current class instance.
From IBM's example code for the class construct, you can see Me references on the last two lines of the InvertColors()
method.
' Define a class.
Class textObject
' Declare member variables.
backGroundColor As Integer
textColor As Integer
contentString As String
' Define constructor sub.
Sub New (bColor As Integer, tColor As Integer, _
cString As String)
backGroundColor% = bColor%
textColor% = tColor%
contentString$ = cString$
End Sub
' Define destructor sub.
Sub Delete
Print "Deleting text object."
End Sub
' Define a sub to invert background and text colors.
Sub InvertColors
Dim x As Integer, y As Integer
x% = backGroundColor%
y% = textColor%
Me.backGroundColor% = y%
Me.textColor% = x%
End Sub
End Class