|
-
May 3rd, 2000, 10:24 AM
#2
Addicted Member
I don't think the "SaveAs" method applies to the Form object. If you look at the help for the "SaveAs" method and then click on "Applies To" you'll get a list of the objects the method can be used with - but unfortunately the "form" is not one of these objects.
The other hint is that when you type "form1." and then the list appears - "SaveAs" is not in the list.
I have had to save the user's data before so that when they run the program again it is displayed as it was before. The way i did it was to just save all the strings to a text file and then read them back next time the project opens (doesn't have to be just strings).
The preferred method would be to use the "SaveSetting" function to save the data to the registry. Use "GetSetting" to get them back. The reason i did not do it this way is that IT would not go anywhere near an application that touched the "sacred" registry. But that really is the [current] way to do it. The older way would be to use a .ini file - same sort of thing - .ini files were about before the registry became more openly accessible to programmers like us.
Hope this helps - although you never really like to see a reply with no code... 
Mark
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
|