Hallo zusammen,
wie ist die Syntax einer Funktion, die als Rückgabewert ein Array hat?

Function Finden(tnDocument As NotesDocument) As Variant
Dim i As Integer
Dim tnBaDocuments(100) As Variant
......
tnBaDocuments(i) = respDoc.Unid
i=i+1
....
Finden= Trim(tnBaDocuments)
End Function
So stimmt es wohl nicht...