Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading and Writing to .INI files.
Message
De
15/07/1999 23:57:35
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00242096
Message ID:
00242142
Vues:
21
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform