Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

I am looking for a way to split a multiline textbox and save the information into
a .csv file. each piece of information needs to be on it's own row. Example below is the desired output i want to achieve.

Order Number Quantity Weight
1345 3 100kg
350kg
20kg
Please help
Posted
Comments
OriginalGriff 15-Nov-11 3:30am    
And what is the input?
Rendani.Nk 15-Nov-11 5:04am    
the output should look like the one shown above where you have 3 Textboxes and on the weight textbox you have 3 Weights all need to be on their own rows

Thanks
joshd06 15-Nov-11 11:07am    
Does the quantity always correspond to the number of rows in the weight?

Can an order number have multiple quantities?

Is there a specific reason you're using 3 textboxes? Why not just use one textbox or something else like a DataGridView?

1 solution

You don't need to use Split function!
You can export/save data into csv file like you save any other data/text into text file. The difference is in the format. All fields in the record (single line) are separated by: ",", ";" or [Tab].
Use Google with: "how to export data to csv file vb.net"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900