You will need to get a collection of documents. This can be obtained either via the view and GetAlldocumentByKey, or via the view and the NotesEntryCollection or via the NotesViewNavigator.
From this collection you need to browse through it with GetFirstDocument en GetNextDocument (or GetFirst and GetNext in case of the entrycollection). Build a dynamic array (with ReDim) and assign it to a dialoglist NotesItem.
PS.: I saw some of your basic questions in this forum. Maybe it is a good idea to have a look at the Designer’s help and have a look at the many samples that are available. This link points to the sandbox, where you will also find many samples: