- This example creates an entry and inserts it into an empty outline.
Dim session As New NotesSession
Dim db As NotesDatabase
Dim outline As NotesOutline
Dim entry As NotesOutlineEntry
Set db = session.CurrentDatabase
'Gets the outline called emptyoutline
Set outline = db.GetOutline("emptyoutline")
'Creates a new outline entry called MyFirstEntry
'and adds it to the outline
Set entry = outline.Createentry("MyFirstEntry")
'Saves the outline with its new entry
Call outline.save()
- This example creates a new outline entry and adds it to "myoutline" as the child of the first entry in the outline.
Dim session As New NotesSession
Dim db As NotesDatabase
Dim outline As NotesOutline
Dim entryA As NotesOutlineEntry
Dim entryB As NotesOutlineEntry
Set db = session.CurrentDatabase
Set outline = db.GetOutline("myoutline")
Set entryA = outline.GetFirst()
Set entryB = outline.Createentry("MyEntry",entryA,1,1)
Call outline.save()
- This example creates a new outline entry and adds it to the outline as the first entry.
Dim session As New NotesSession
Dim db As NotesDatabase
Dim outline As NotesOutline
Dim entryA As NotesOutlineEntry
Dim entryB As NotesOutlineEntry
Set db = session.CurrentDatabase
Set outline = db.GetOutline("discussion")
Set entryA = outline.GetFirst()
Set entryB = outline.Createentry("MyEntry",entryA)
Call outline.save()
- This example creates a new outline entry and adds it to the outline after the first entry at the top level.
Dim session As New NotesSession
Dim db As NotesDatabase
Dim outline As NotesOutline
Dim entryA As NotesOutlineEntry
Dim entryB As NotesOutlineEntry
Set db = session.CurrentDatabase
Set outline = db.GetOutline("myoutline")
Set entryA = outline.GetFirst()
Set entryB = outline.Createentry("MyEntry",entryA,1)
Call outline.save()