Hi
An array that is obtained from a numeric NotesItem always is of DOUBLE type.
Actually, this is clearly described in Lotus Notes help - nothing special.
However, it is not always obvious how it affects on your code.
I just met a case that demonstrated it for me
Dim w As New notesuiworkspace
Dim doc As notesdocument
Dim ItemValue As Variant
Set doc = w.CurrentDocument.Document
Call doc.ReplaceItemValue("somefield", Clng(1))
itemValue = doc.GetItemValue("somefield")
Redim Preserve ItemValue(Ubound(ItemValue) + 1) As Long '<--Error here
No comments:
Post a Comment