制作(或查找)Ascii文本导入向导 [英] Making (or finding) Ascii Text Import Wizard
问题描述
我正在为我的工作编写一个程序,该程序可以使某些数据库文件自动化.
大多数文件都是csv或定长ascii格式(txt).
现在excel具有漂亮的导入向导,您可以在其中放置列分隔符
用鼠标等访问..
是否有任何模仿这种控件的控件?
那会节省我很多时间自己编程..
有关在何处下载或如何编写控件/对话框的任何提示
具有这些功能的产品是值得欢迎的.
Gr.丹尼尔
添加:
我不是在寻找导入csv的方法(blabla.Split())
或从固定的ascii(blabla.Substring(0,10))选择文本的方法
只是一种构建可以做到这一点的importwizard的方法,或者是在其中放置
的地方
Hi,
I''m writing a program for my work that automates certain database files.
Most of the files are in csv or fixed-length ascii format (txt).
Now excel has a beautiful import wizard where you can put column seperators
with your mouse etc. Access too..
Are there ANY controls who mimic this kind of control?
That would save me a lot of time programming it myself..
Any tips on where to download or how to approach writing a control/dialog
with these functionalities are welcome.
Gr. Daniel
Added:
I''m not looking for a way to import csv (blabla.Split())
or a way to select text from a fixed ascii (blabla.Substring(0, 10))
Just a way to build an importwizard that does this, or a place where
this control is available.
推荐答案
我不知道您描述的控件,但是可以对CSV文件中的每一行使用以下方法:
String.Split [
I don''t know about controls that you described but you can use the following method for each line in your CSV file:
String.Split[^]
This should be easy...
这篇关于制作(或查找)Ascii文本导入向导的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!