Hi all,
I was trying to delete an outline using Notesnotecollection, But notesnotecollection.remove() function was unable to delete it, I paste the code below, plz help me where I go wrong…
Set nc = curdb.CreateNoteCollection(False)
nc.SelectOutlines = True
Call nc.BuildCollection
nid = nc.GetFirstNoteId
For i = 1 To nc.Count
nextid = nc.GetNextNoteId(nid)
set docnc = curdb.GetDocumentByID(nid)
subj = docnc.GetItemValue(“$Title”)(0)
If subj = “Main-OutlineTest” Then
Call nc.Remove(nid)
End If
nid = nextid
Next
Thanks In Advance
thomas