Principle: The domain values in this document are in the array format. The value of the multi-value field is similar to the array of one row and multiple columns. The subscript starts from 0.
Assume that the domain name is Employee and the type is multi-value text field. In this document, the value of this field is james, robin, and alfred.
The returned value of LS is jamesw.alfred.
Method 1: directly obtain
StrEmployee = doc. Employee (0) + doc. Employee (1) + doc. Employee (2)
Method 2: Use Evaluate to declare
Dim strEmployee As Variant
Const NotesMacro $ = "@ Implode (Employee )"
StrEmployee = Evaluate (NotesMacro $, doc)
Msgbox Cstr (strEmployee (0 ))
Method 3: Use the GetItemValue Method
Dim itmEmployee As Variant
ItmEmployee = doc. GetItemValue ("Employee ")
Forall o In itmEmployee
Msgbox Cstr (o)
End Forall
Method 4: Convert to Array Processing
Dim I, j As Integer
I = 0
ArrEmployee = doc. GetItemValue ("Employee ")
For j = Lbound (arrEmployee) To Ubound (arrEmployee)
Msgbox Cstr (arrEmployee (I ))
I = I + 1
Next