Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.ini files
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00150938
Message ID:
00150966
Views:
21
>Michelle,
>
>There are several alternatives. I like using a one record table or a table with one record and two fields, one describes the setting the other contains the value. You could also use ini files. They are just text files. You can use VFP's low-level file functions (FOPEN(), FCREATE(), FPUTS(), FWRITE(), etc.). I think there are also some Win API functions for manipulating ini files. Another option is the registry. I think there is at least one class in the files section here that makes writing to and reading from the registry fairly easy. The registry is really only good for holding settings for a single user. It's not appropriate for information that needs to be shared. There can also be issues with losing data if someone gets a new computer or is using someone else's machine and has the registry stored locally.
>
>Keep in mind that a user can easily open an ini file with Notepad and change the settings. This can be good or bad depending on your application.

I'm looking to store info like who it's registered to, serial number, stuff like that. I like the idea of a table with 2 fields. That way I could add info without having to change the structure of the table. I'll try that.

Thanks,

-Michelle
Previous
Reply
Map
View

Click here to load this message in the networking platform