LOTUSSCRIPT /COM/OLE のクラス
1. 次の宣言は、フォームの (Globals) (Declarations) にあります。変数「elapsedTime」はフォームのさまざまなオブジェクトで使用されます。フォームの多くのスクリプトの実行中には、NotesTimer オブジェクトの elapsedTimer は有効でなければなりません。
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
関連項目