LOTUSSCRIPT/COM/OLE CLASSES


Examples: NumberDigits property
This agent toggles the number of decimal places for numeric values in a column from 0 through 6.

Sub Initialize
 Dim session As New NotesSession
 Dim db As NotesDatabase
 Dim view As NotesView
 Dim vc As NotesViewColumn
 Dim f As String
 Set db = session.CurrentDatabase
 Set view = db.GetView("View A")
 Set vc = view.Columns(1)
 vc.NumberDigits = vc.NumberDigits + 1
 If vc.NumberDigits > 5 Then
   vc.NumberDigits = 0
 End If
 Messagebox vc.NumberDigits,, "Number of decimal digits"
End Sub

See Also