LOTUSSCRIPT/COM/OLE CLASSES
1. These declarations are in the (Globals) (Declarations) script for the form. The variable elapsedTime is used by various objects on the form. The NotesTimer object elapsedTimer must be in effect during the execution of a number of scripts on the form.
Sub Click(Source As Button) If elapsedTimer.Enabled Then If Messagebox _ ("Do you want to disable the timer?", _ MB_YESNO + MB_ICONQUESTION, _ "Elapsed timer is enabled") = IDYES Then elapsedTimer.Enabled = False End If Else If Messagebox _ ("Do you want to enable the timer?", _ MB_YESNO + MB_ICONQUESTION, _ "Elapsed timer is disabled") = IDYES Then elapsedTimer.Enabled = True End If End If End Sub
See Also