LOTUSSCRIPT/COM/OLE CLASSES


Examples: IsValid property
This script checks to see if the Cars view entry in the By Category view is a valid entry. If the view entry is valid, the document is placed in the Valid Entries folder. If the view entry is not valid a message is displayed.

Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim entry As NotesViewEntry
Dim doc As NotesDocument
Set db = session.CurrentDatabase
Set view = db.GetView("By Category")
view.AutoUpdate = False
Set entry = view.GetEntryByKey("Cars")
Set doc = entry.Document
If entry.IsValid Then
 Call doc.PutInFolder("Valid Entries")
Else
 Messagebox "This view entry is invalid."
End If

See Also