Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp5.0 ini files
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00029034
Message ID:
00029426
Views:
22
Jim,

As you can see, you generated a lot of discussion on this
subject. There are a couple of things that should be clarified.

1. Windows 95 accessories (such as WordPad) use INI files.

2. Microsoft documents, however, that the way to store system
wide variables is through the use of the Registry.

3. There is a real danger in messing around with the Registry.
If it becomes corrupt, the user may have to completely re-install
Windows. Windows itself keeps backups, but I've seen that fail.

The TazTraders sample has examples on using INI files. The
Solutions Sample (under Windows API) has a registry sample.
There's a sample custom class (REGISTRY.PRG) under
SAMPLES\CLASSES.

I'd store information that wasn't critical (last form position,
for example) in a INI file. That way, if it got messed with it
wouldn't matter. Things that I wouldn't want someone fooling
with (such as an encrypted password), I put in the Registry.

Good Luck,

George
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform