p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   .NET 4 and Visual Studio 2010 General Discussions (http://p2p.wrox.com/forumdisplay.php?f=579)
-   -   How do I modify code for array to no array? (http://p2p.wrox.com/showthread.php?t=99147)

winkimjr2 August 19th, 2016 10:25 AM

How do I modify code for array to no array?
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


'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

All times are GMT -4. The time now is 06:54 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.