LOTUSSCRIPT/COM/OLE CLASSES
Sub Initialize On Error Goto handleError Dim ws As New NotesUIWorkspace Dim uidoc As NotesUIDocument Dim s As New NotesSession Dim db As NotesDatabase Dim v As NotesView Dim doc As NotesDocument Set db = s.CurrentDatabase Set view = db.GetView("All Documents") Set doc = view.GetFirstDocument Call ws.OpenFrameSet("main") Call ws.SetTargetFrame("left") Set uidoc = ws.EditDocument(False, doc, False) Exit Sub handleError: If Err() = lsERR_LSXUI3_ANCESTOR_TARGET_FRAME Then Exit Sub Else Messagebox Err(),, Error() Exit Sub End If End Sub