VB6.0 click the button to send the information from the text box to a txt fille!

Hello guys!

I need when i am pushing a button to send the information from text box to a txt file  .. to store to a txt file  !!



Can you help me please?
KingSencatAsked:
Who is Participating?
 
suprapto45Commented:
Please also look on how to use it.

SaveTextToFile "C:\My Documents\MyFile.txt", "Hello There"

So if you have txtTest as your textbox's name. You can do it like
SaveTextToFile "C:\My Documents\MyFile.txt", txtTest.text

David
0
 
suprapto45Commented:
Hi,

http://www.freevbcode.com/ShowCode.asp?ID=733

That may help you. Please get back to us if it does not work on you.

David
0
 
KingSencatAuthor Commented:
Not helping at all..
0
 
KingSencatAuthor Commented:
this source i must to put at the button right ?
0
 
suprapto45Commented:
Nope,

This is the one that you need to put in your button.

SaveTextToFile "C:\My Documents\MyFile.txt", txtTest.text

Then you need to copy and paste the function from the URL to your VB as well.

Please let me know if you still have a problem.

David
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.