Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 4 and Visual Studio 2010 > .NET 4 and Visual Studio 2010 General Discussions
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
.NET 4 and Visual Studio 2010 General Discussions For discussing anything about .NET 4, WPF, WCF, the rest of the .NET 4 Framework, and Visual Studio 2010 that isn't about a specific Wrox book. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET 4 and Visual Studio 2010 General Discussions section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 19th, 2016, 10:25 AM
Authorized User
Points: 376, Level: 6
Points: 376, Level: 6 Points: 376, Level: 6 Points: 376, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2013
Posts: 84
Thanks: 11
Thanked 0 Times in 0 Posts
Default 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

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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convering a String Array to an Integer array nkrust C# 9 November 17th, 2010 11:02 AM
I am have been trying to assign a c# array value to a javascript array ysfkay ASP.NET 3.5 Professionals 10 April 7th, 2010 07:46 AM
Go from 2d Array to 1d array without defining type OneQuestion General .NET 1 January 10th, 2008 10:13 AM
error when sorting an Array of Array nancy VBScript 2 February 17th, 2005 11:57 AM
Passing php array values to javascript array gkrishna Pro PHP 0 November 6th, 2004 02:20 AM



All times are GMT -4. The time now is 12:28 PM.


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