Füge mal vor der Zuweisung zu v ein:
Print TypeName(doc.F1)
If Not doc.hasItem("F1") Then
Print "Das Feld F1 gibt es nicht im Dokument!
End If
So funktioniert es
Dim session As New NotesSession
Dim dbThis As NotesDatabase
Dim dc As NotesDocumentCollection
Dim doc As NotesDocument
Set dbThis = session.CurrentDatabase
Set dc = dbThis.UnprocessedDocuments
Set doc = dc.GetFirstDocument
Dim v As Variant
Dim i As Integer
'Dokument enthält Feld 'F2' mit nur einem Wert '1'
Print TypeName(doc.F2) & " - Dimension: " & UBound(doc.F2) & ", Wert: " & doc.F2(0) 'OK Ausgabe DOUBLE( ) - Dimension 0, Wert: 1
ReDim v (UBound (doc.F2))
For i = 0 To UBound (doc.F2)
v (i) = doc.F2 (i)
Next i
Print TypeName(v(0)) & " - Wert: " & v(0) 'OK Ausgabe Double - Wert: 1
v(0) = 2.0
Print TypeName(v(0)) & " - Wert: " & v(0) 'OK Ausgabe DOUBLE - Wert: 2
v(0) = "3"
Print TypeName(v(0)) & " - Wert: " & v(0) 'OK Ausgabe STRING - Wert: 3