Hi,
du sprichst das Feld nicht als Variable an, sondern du arbeitest mit dem Rückgabewert.
Ein Blick in die Designer-Hilfe zeigt folgendes:
Auszug zu GetItemValue aus der Klasse NotesDocument
...
Usage
For text, number, and time-date items, GetItemValue always returns an array, even when there is only a single value in the item. If you know the item contains only a single value, access the first element in the array, which is at index 0. If you know the item contains multiple values, but you don't know how many, iterate over the array elements using the Forall statement.
"Extended class" syntax
You can also access the contents of an item directly, without using GetItemValue. The following two statements are equivalent:
t = lastDoc.GetItemValue( "Topic" )
t = lastDoc.Topic
This syntax lets you access and modify items the same way you access and modify other NotesDocument properties. The return value is the same, that is, an array of values for text, number, or time-date items, and a string for rich text items.
...
Du kannst nun folgendes machen:
t = lastDoc.Topic
For i = 0 to Ubound(t)
...
Aber das Ganze geht dann auch kürzer:
For i = 0 to Ubound(lastdoc.Topic)
...
Axel