Bonjour
je cherches un moyen fiable de déterminer qu'une base est une mailbox juste en analysant sont design via un script ?
une idée ?
set Item = New NotesItem(wDocReport,"DocProfile","")
Set NCollection = wDBScan.CreateNoteCollection(False)
If Not NCollection Is Nothing Then
Call NCollection.SelectAllFormatElements(False)
NCollection.SelectProfiles = True
On Error Resume Next
Call NCollection.BuildCollection
On Error Goto CatchError
If NCollection.Count > 0 Then
NotesID = NCollection.Getfirstnoteid()
While Trim(NotesID) <> ""
Set Doc = wDBScan.Getdocumentbyid(NotesID)
If Not Doc Is Nothing Then
Select Case Lcase(Trim(Cstr(Doc.Nameofprofile)))
Case "designerdefaults","breakpoints_"
REM on fait rien
Case Else
i=i+1
Texte = Trim(Cstr(Doc.Nameofprofile))
If Trim(Cstr(Doc.Key)) <> "" Then
Texte = Texte +" ( "+Cstr(Doc.Key)+" )"
End If
Call Item.Appendtotextlist(Texte)
texte = ""
End Select
Set Doc = Nothing
End If
NotesID = NCollection.Getnextnoteid(NotesID)
Wend
Call NCollection.Clearcollection()
End If
Set NCollection = Nothing
End If
Set Item = Nothing