Hi
I have a piece of code which is giving me the error message when I call notesdocumentcollection.removeallfromfolder(view.name)
"A folder or view of this name already exists (($sent))
Here is a code snippet:
Dim uiview As notesuiview
Dim view As notesview
Dim vname$
Set uiview=ws.CurrentView
Set view =uiview.View
vname$=view.Name
Dim unprocessed As NotesDocumentCollection
Set unprocessed = currentdb.unprocesseddocuments
'some stuff here
Call unprocessed.putallinfolder(“($Trash)”)
Call unprocessed.removeallfromfolder(vname$)
TIA