LOTUSSCRIPT /COM/OLE のクラス
例:DeleteDocument メソッド
1. 次のスクリプトは現在の文書を閉じて削除マークを付けます。ただし、文書が編集モードのときは何もしません。
Sub Click(Source As Button)
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument
If Not ( uidoc.EditMode ) Then
Call uidoc.DeleteDocument
End If
End Sub
2. 次のスクリプトは DeleteDocument を呼び出した後で現在の文書を分類しようとしますが、分類はできません。
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument
If Not ( uidoc.EditMode ) Then
Call uidoc.DeleteDocument
Call uidoc.Categorize( "Purged" )
'error, since uidoc object is not valid
End If
関連項目
DeleteDocument メソッド
用語集
フィードバック
ヘルプ
または
プロダクトユーザビリティ
ヘルプの使い方
すべてのヘルプ項目
用語集