LOTUSSCRIPT LANGUAGE
' A variable to store values between uses of the property Dim count As Integer
Property Get counter As Integer count% = count% + 1 ' Add 1 to the previous value. counter% = count% ' Return the value. End Property
Property Set counter As Integer count% = counter% ' Assign the value to count. End Property counter% = 100
' Each time the property is used, it increments count ' by 1 and returns count's value, so this prints 101. Print counter%
' Prints 102 Print counter%
See Also