视图中排序后遍历(解决立马结贴)
一个nsf有三笔文档(s_Subject为A, B, C),
文档创建顺序是C,B,A;
在库中建一视图按s_Subject升序排(即A,B,C),
如何要遍历视图时是从A-->B-->C顺序...?
Msgbox doc.s_Subject(0)不能从A-->B-->C顺序显示..如何解决..?
Sub Initialize
Dim uiworkspace As New notesuiworkspace
Dim uiview As notesuiview
Dim doc As NotesDocument
Set uiview = uiworkspace.currentview
Set doc = uiview.Documents.GetFirstDocument()
While Not (doc Is Nothing)
Msgbox doc.s_Subject(0)
Set doc = uiview.Documents.GetNextDocument(doc)
Wend
End Sub