I would like to modify code that checks for batch citations using array. I want it to check for a single citation instead. This code uses a function GetCaseNumbersForCitation to check if a citation number exist in the database.
Here is the code to check if citation is a duplicate for batch citations.
I will not need the array because there is always going to be only one citation.
Here is the code I would like to modify
Code:
'Check if the citation is a duplicate
Hide Copy Code
strCitationNumber = objXMLCitationNode.SelectSingleNode("msc:Citation/msc:CitationNumber/msc:ID", objXMLNameSpaceManager).InnerText
strCitationNumbers = Msc.Integration.Mncis.Library.v4.Citation.GetCaseNumbersForCitation(strCitationNumber, False)
If (strCitationNumbers(0) <> "No Matching Case") Then
'add the error message
CType(objXMLCitationNode, XmlElement).SetAttribute("validationError", "This is a duplicate citation.")
End If