J'ai un agent qui recupère une collection par une vue.
J'aimerai pouvoir faire un tri sur cette collection.
Je m'explique :
- Code : Tout sélectionner
Set colRapp = vwRapp.getAllDocumentsByKey( sDateDeb + sDomaine )
J'ai voulu faire :
- Code : Tout sélectionner
Dim sStructure As String
sStructure = docDialog.getItemValue( "StructureRap" )(0)
Dim colRapp2 As NotesDocumentCollection
Set colRapp2 = Nothing
Set docCurrent = colRapp.getFirstDocument
While Not docCurrent Is Nothing
If docCurrent.StructureLect(0) = sStructure Then
Call colRapp2.AddDocument( docCurrent )
End If
Set docCurrent = colRapp.GetNextDocument(docCurrent)
Wend
J'ai une erreur, qui me dit "variable d'objet non définie" sur le "call colRapp2.AddDocument.."