例: QueryPaste event

次の QueryPaste イベントは、ユーザーが [いいえ] と答えた場合に貼り付け操作を中止します。

(Globals) (Declarations)
%INCLUDE "lsconst.lss"
Sub Querypaste(Source As Notesuiview, Continue As Variant)
  If Messagebox _
  ("Do you want to proceed with this paste operation?", _
  MB_YESNO + MB_ICONQUESTION, _
  "Paste operation") = IDNO Then
    Continue = False
  End If
End Sub