|
-
Jul 10th, 2006, 07:55 AM
#1
Thread Starter
Member
save command
Hello everyone.
I want to get the save command.One friend has told me that it is something like Fileopen ( ) but i don't know what is.
This question has asked for sure but because i am with a dial up i don't have
time,sorry for that
The worst programmer ever 
-
Jul 10th, 2006, 08:01 AM
#2
Frenzied Member
Re: save command
??? the save command can be anything from saving to a file to saving to a database. in each case the logic is different and so is the technique according to the amount and type of data u want to save.
please be specific on what you want to save and where.
-
Jul 10th, 2006, 08:10 AM
#3
Member
Re: save command
plz specific what do you want to can help you man okk
you can save data from Database , Registry , Files and more ..........
-
Jul 10th, 2006, 09:19 AM
#4
Thread Starter
Member
Re: save command
I want when the user clicks the save command button the programm will save the programm everywhere the user want i have already put
VB Code:
cdl.Filter = "Exe Files(*.exe)|*.exe"
cdl.DialogTitle = "Save"
cdl.ShowSave
and i need the last command
i hope you understand
The worst programmer ever 
-
Jul 10th, 2006, 09:40 AM
#5
Re: save command
what is the user saving to an exe???
does your app create an exe?
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Jul 10th, 2006, 09:53 AM
#6
Thread Starter
Member
Re: save command
No the form1 will be saved as an exe
i tell it again this time better
In fact i ve got a programms with text.When i close the programm the text of the text
is again blank.That's why i need it,so the user save the form1 everywhere he want to i
can open it with the text written
The worst programmer ever 
-
Jul 10th, 2006, 10:01 AM
#7
Re: save command
well. you can save the form as an exe from code?
anyway I think this is what you want.
User types data in a text field... then closes the program
when opened.. the text is back in the field?
VB Code:
Private Sub Form_Load()
If Len(Dir(App.Path & "\data.txt")) <> 0 Then
Open App.Path & "\data.txt" For Input As #1
Text1.Text = Input(LOF(1), 1)
Close #1
End If
End Sub
Private Sub Form_Unload(Cancel As Integer)
Open App.Path & "\data.txt" For Output As #1
Print #1, Text1.Text
Close #1
End Sub
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Jul 10th, 2006, 10:18 AM
#8
Thread Starter
Member
Re: save command
Thanx but in the case of 5 text boxes ?
And something in the end of text it has two black II
The worst programmer ever 
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
|