如何在VB.Net中使用拆分功能 [英] How to use a spliting function in VB.Net

查看:58
本文介绍了如何在VB.Net中使用拆分功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在寻找一种拆分多行文本框并将信息保存到的方法
.csv文件.每条信息都必须位于其自己的行上.下面的示例是我想要实现的期望输出.

订单号数量重量
1345 3 100kg
350kg
20公斤
请帮助

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

推荐答案

您不需要使用Split函数!
您可以将数据导出/保存到csv文件中,就像将任何其他数据/文本保存到文本文件一样.区别在于格式.记录中的所有字段(单行)之间用,",;"分隔或[Tab].
搭配使用Google:如何将数据导出到csv文件vb.net"
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"


这篇关于如何在VB.Net中使用拆分功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆