LOTUSSCRIPT /COM/OLE のクラス


例:FontColor プロパティ
次のエージェントは、フォントの色を青から黒 (黒から青) に切り替えます。

Sub Initialize
 Dim session As New NotesSession
 Dim db As NotesDatabase
 Dim view As NotesView
 Dim vc As NotesViewColumn
 Set db = session.CurrentDatabase
 Set view = db.GetView("Categorized")
 Set vc = view.Columns(0)
 If vc.FontColor = COLOR_BLACK Then
   vc.FontColor = COLOR_BLUE
 Else
   vc.FontColor = COLOR_BLACK
 End If
End Sub

関連項目