Solved

Creating Arrays

Posted on 2013-12-12
2
338 Views
Last Modified: 2013-12-12
I have a Text box where the user is going to be allowed to enter a string of codes separated by some delimiter and also they can copy and paste a list of codes from the Excel spreadsheet.  See below example.

4263,4250,44490,22243,22245,4265,
4263
4250
29701
1305
11295
30457
90995,70246,12345,45678,95544

I can get the delimited values into an array using the Split Method, but how would I get the list into the same array.    I need to pass the values one at a time to a stored proc.    I cannot change the stored proc to accept a string of codes as it is used by other processes.

Can someone please help me.  

Thanks.
linecodes.jpg
0
Comment
Question by:sherbug1015
2 Comments
 
LVL 27

Accepted Solution

by:
Chinmay Patel earned 500 total points
ID: 39714660
I don't have an IDE right now but you can try to split using newline character \n or can use Environment.Newline and see if it works for you.
0
 

Author Closing Comment

by:sherbug1015
ID: 39714812
I was able to get it to work.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now