Solved

how to create text file using vb6.0

Posted on 2010-09-04
1
415 Views
Last Modified: 2012-06-27
Hello experts

How can i create csv file and write data from vb application ?

In a form have 20 text boxes (some for text and some for numbers) and one command button

Now click event on button, i want to create csv file and rename it same as value from text1.text.

Please assist me , how can i do that

Thanks


 
0
Comment
Question by:crystalsoft
1 Comment
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 250 total points
ID: 33603765
Something like:
Open Text1.Text For Output As #1
Print #1, Text2.Text & "," & Text3.Text & "," & Text4.Text & "," & Text5.Text & "," & ...
Close #1

Open in new window

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question