如何制作将信息导出到文本文件的Visual Basic程序 [英] How to make a Visual Basic Program That Exports Info to a Text File

查看:77
本文介绍了如何制作将信息导出到文本文件的Visual Basic程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Sorry for the awkward title, I don't know how to word my question properly, but basically I want to create a windows form with labels beside a textbox asking for my

ID,名称,密码和其他信息.

ID, Name, Password, and Additional Information.

然后,我希望有一个添加按钮,将最终结果输出到可复制的文本文件列表中

I then want there to be an add button which outputs the final result to a copy-able text file list

我想将其添加到终端mysql数据库中,因此我希望ID名称和信息输出完全像这样:

I want to add it to a terminal mysql database, so I would like the ID name pass and info outputted exactly like this:

(ID,"NAME","PASSWORD","ADDITIONALINFO")

(ID,'NAME','PASSWORD','ADDITIONALINFO'),

如何使用Visual Basic对此进行编码?

How can this be coded using Visual Basic?

谢谢!!!

推荐答案

Sorry for the awkward title, I don't know how to word my question properly, but basically I want to create a windows form with labels beside a textbox asking for my

ID,名称,密码和其他信息.

ID, Name, Password, and Additional Information.

然后,我希望有一个添加按钮,将最终结果输出到可复制的文本文件列表中

I then want there to be an add button which outputs the final result to a copy-able text file list

我想将其添加到终端mysql数据库中,因此我希望ID名称和信息输出完全像这样:

I want to add it to a terminal mysql database, so I would like the ID name pass and info outputted exactly like this:

(ID,"NAME","PASSWORD","ADDITIONALINFO")

(ID,'NAME','PASSWORD','ADDITIONALINFO'),

如何使用Visual Basic对此进行编码?

How can this be coded using Visual Basic?

谢谢!!!

杰夫

我(从字面上)对MySQL或任何其他数据库一无所知,但首先要注意的是-您还不存在.

I know nothing (literally) about MySQL or any other database, but first things first - you're not there yet.

您要问的是封装一些数据,然后从这些数据中写出一个文本文件.

You're asking about encapsulating some data and from that data then writing out a text file.

您如何设想要格式化的文本文件? .csv文件可能是.xml文件,还是怎么办? JSON也是一种可能,并且如今已经被大量使用,因此这是另一种写入文本文件的可能方式.

How do you envision that text file to be formatted? A .csv file maybe or .xml or just how? JSON is also a possibility and is used quite a lot these days, so that's another possible way to write the text file.

我假设是否存在出口"商品,然后,还应该有一个导入"方法.相同文本文件中的方法?

I'm assuming that if there's an "export" method then there should also be an "import" method from the same text file?

到目前为止,您对此做了什么?

What have you done on this so far?

请让我们从那里走. :)

Let's go from there please. :)


这篇关于如何制作将信息导出到文本文件的Visual Basic程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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