![]() |
code for keeping entered data constant
How can i keep my data constant after quitting from program. For example:-
If i have entered Potato in any text box. when quit and reopen the program the word potato remains their. |
Re: code for keeping entered data constant
Save them to a file and reload the content from file when you run next time.
|
Re: code for keeping entered data constant
or you can use the registry to accomplish that.
|
Re: code for keeping entered data constant
Quote:
|
Re: code for keeping entered data constant
How? Any example. Please
Thanks |
Re: code for keeping entered data constant
Quote:
for example vb6 , vb2008 |
Re: code for keeping entered data constant
In VB6
|
Re: code for keeping entered data constant
with the file method
================== you need a form with a textbox named text1 Code:
Option Explicit |
Re: code for keeping entered data constant
1 Attachment(s)
Tried:
Given : filepath = App.Path + "\" + filename as C:\Datastore.text and form 1 with text1.text BUT IT not worked Project attached |
Re: code for keeping entered data constant
the program works great when you press X to close your form.
I never told you anything about a command button. If you want to end your program with a command button then before "end" copy paste the form_terminate() code like the code below Code:
Private Sub Command1_Click() |
| All times are GMT +5.5. The time now is 03:29. |