Dim CostCenters As notesitem
Set CostCenters = doctemp.GetFirstItem("ExpDlg_CostCenters") 'Multi-valued field
Dim CurrentCode As String
ForAll R In CostCenters.Values
CurrentCode = R
Msgbox R
End ForAll
For J = 0 To Ubound(CostCenters.Values)
CurrentCode = CostCenters.Values(J)
Msgbox CostCenters.Values(J)
Next J