|
-
Jun 7th, 2006, 02:14 PM
#1
Thread Starter
Lively Member
[RESOLVED] command button to save your textboxs value
hii everybody
i want ask you about my form that contain 3 textboxs with one command button so i want to make this commandbutton to save what is in the textbox as *txt files for next use
please help and give me if it 's possible the function or code ,okey!
--------------------
your brother milen thx a lot guys
regard's
Last edited by Hack; Jun 8th, 2006 at 06:57 AM.
Reason: Added RESOLVED to thread title and green resolve checkmark
-
Jun 7th, 2006, 02:16 PM
#2
Re: command button to save your textboxs value
Have you researched on the Open statement, Print statement, and Input statement?
-
Jun 7th, 2006, 02:33 PM
#3
Thread Starter
Lively Member
Re: command button to save your textboxs value
what means open statment where can i fond him??????
-
Jun 7th, 2006, 02:39 PM
#4
Re: command button to save your textboxs value
-
Jun 7th, 2006, 02:49 PM
#5
Re: command button to save your textboxs value
here is more specifically what u need
this is assuming the textboxes have 1 line in each.. if multiline then let me know
you could do that a few different ways
VB Code:
Private Sub Command1_Click()
Open App.Path & "\data.txt" For Output As #1
Print #1, Text1
Print #1, Text2
Print #1, Text3
Close #1
End Sub
Private Sub Form_Load()
Dim tmp As String
If Len(Dir(App.Path & "\data.txt")) <> 0 Then
Open App.Path & "\data.txt" For Input As #1
Line Input #1, tmp
Text1 = tmp
Line Input #1, tmp
Text2 = tmp
Line Input #1, tmp
Text3 = tmp
Close #1
End If
End Sub
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Jun 7th, 2006, 04:05 PM
#6
Thread Starter
Lively Member
Re: command button to save your textboxs value
theank you guys it's work
spicilly static thx a lot
milen
regard's
-
Jun 7th, 2006, 04:32 PM
#7
Re: command button to save your textboxs value
When you have received an answer to your question, please mark it as Resolved using the Thread Tools menu.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|