|
-
Mar 15th, 2000, 11:21 AM
#1
Thread Starter
Hyperactive Member
Any one know how i can save these things IE:
txtbox.text
option1.value
CapText.caption
anyway i can save all these to one file, then open them
I have alot of things (about 20) so i need someway
where i can add/delete more things to save and open.
Thanks!
BTW(by the way), It can be a any file IE ini,txt
-
Mar 15th, 2000, 01:32 PM
#2
Hyperactive Member
you might be better off saving them to the registry.
try using something like the following.
Code:
SaveSetting App.Title, "SavedData", "Text1.Text", Text1.Text
Text1.Text = GetSetting(App.Title, "SavedData", "Text1.Text")
watch out on the first time it is run, though, because you could get a bad error. In order to prevent that from happening, put this line before every line with GetSetting:
Code:
On Error Resume Next
This is pretty useful. If you want more help, create a new project with the vb application wizard and look at what happens when it loads and unloads. It saves the position of the forms by saving the values to the registry.
good luck,
bob
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
|