LOTUSSCRIPT /COM/OLE のクラス


例:Query プロパティ
次のスクリプトは Cleansing エージェントが持つ検索条件を取得して、変数 selection に代入します。

Dim session As New NotesSession
Dim db As NotesDatabase
Dim agent As NotesAgent
Set db = session.CurrentDatabase
Dim selection As String
agentList = db.Agents
Forall a In agentList
 If ( a.Name = "Cleansing Agent" ) Then
   Set agent = a
 End If
End Forall
selection = agent.Query

実行結果の例を次に示します。


関連項目