Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading and Writing to .INI files.
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00242096
Message ID:
00242142
Views:
19
>I'm looking for the best way to read and write to an .INI file. I have come up with using low level functions FGET(), FPUT(), or using the REGFN() function available in Foxtools.dll. I can't help but think that there is a better way to do this...
>

If you're using VFP6, the FFC contains a class that can reliably read and write .INI files. Look at the code for the class carefully, because the meaning of some of the parameters may not leap out at you if you haven't worked with the underlying API calls before. There's a thread about one of the methods involved that occurred within the past day or two.

With older version of VFP (or even VFP6) there are classes that can be downloaded from the Files Se4ction here on UT that will manipulate INI files reliably using API calls, and their documentation may be better than the scanty docs on the FFC classes.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform