Can anyone suggest an easier way for me to compare fields in two different documents than the code I am using. My problem is that I have nearly 300 fields from about 8 different forms, and I need to rewrite the same code 300 times. I would like to do this by using an array if possible, but I am having a hard time understanding the help for arrays in the Domino Designer. Any assistance is greatly appreciated. Here is my code:
If spooldoc.hasitem("eqp_group") Then
spooldoc_eqp_group=spooldoc.getitemvalue("eqp_group")
If thisdoc.hasitem("eqp_group") Then
thisdoc_eqp_group = thisdoc.getitemvalue("eqp_group")
If thisdoc_eqp_group(0) <> spooldoc_eqp_group(0) Then
Call thisdoc.ReplaceItemValue("eqp_group", spooldoc_eqp_group)
MatchStatus = "Conflict"
End If
Else
If Not Isnull(spooldoc_eqp_group) Then
Call thisdoc.ReplaceItemValue("eqp_group", spooldoc_eqp_group)
MatchStatus = "Conflict"
End If
End If
Else
If thisdoc.hasitem("eqp_group") Then
Call thisdoc.removeitem("eqp_group")
MatchStatus = "Conflict"
End If
End If