LOTUSSCRIPT/COM/OLE CLASSES


Examples: FontFace property
This agent toggles the font face between Helvetica and Default Sans Serif.

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.FontFace = "Default Sans Serif" Then
   vc.FontFace = "Helvetica"
 Else
   vc.FontFace = "Default Sans Serif"
 End If
 Messagebox vc.FontFace,, "Font face changed to ..."
End Sub

See Also