-
Mar 28th, 2013, 01:41 PM
#1
Thread Starter
Frenzied Member
getting delimeted text from the List array
Hi Friends,i want to add list of barcode in the textbox .which have multiline true .so what i want . i want to store all the textbox data in list mydelimeter list .i simple want when user click on button it needs to show in attached format.
let me know please .
01772531
01772579
01775228
01777710
01783247
01812060
01813005
01813050
01515206
01532104
01538793
01548211
01569025
01569049
01569070
01569742
03146972
03147009
03147320
03147344
03147399
03148600
03148655
04697039
04697046
04697053
04697060
04771098
04771104
04771111
08799005
08799012
04914327
04914334
04914341
04914358
04927808
04927815
04927822
08801005
08801012
04767459
Code:
private void button1_Click(object sender, EventArgs e){
List<string> Mydelimeter = new List<string>();
Mydelimeter.Add(textBox1.Text);
MessageBox.Show(textBox1.Text);
}
Attachment 98235
Last edited by firoz.raj; Mar 28th, 2013 at 01:45 PM.
-
Apr 6th, 2013, 07:27 AM
#2
Thread Starter
Frenzied Member
Re: getting delimeted text from the List array
hI Friends,still i am not getting the above attached way all the barcode .Basically i want to loop through each line of data in the textbox before adding it to r List(Of String) then loop through List to build a string, adding the required characters .let me know please .
Code:
private void button1_Click(object sender, EventArgs e){
List<string> Mydelimeter = new List<string>();
Mydelimeter.Add("'" + textBox1.Text + "',\n");
MessageBox.Show("'"+textBox1.Text+"',");
}
Attachment 98571
Last edited by firoz.raj; Apr 6th, 2013 at 03:52 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|