Solved

Creating Arrays

Posted on 2013-12-12
2
342 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

735 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