Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting Key or Section in Ini-File
Message
De
29/09/2004 06:21:45
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00947097
Message ID:
00947100
Vues:
13
Thomas,

yes there is.
Assuming you have a real file:
*declare
DECLARE INTEGER WritePrivateProfileString IN Win32API;
 AS WritePrivateINI STRING,STRING,STRING,STRING

 lnErrNum = WritePrivateINI(cSection,cEntry,cValue,cINIFile)
cValue= .NULL., all others !ISNULL deletes a entry
cEntry, cValue= .NULL., cSection !ISNULL deletes a section

cSection, cEntry, cValue= .NULL., flushes to disk. Do not miss this one!

HTH

Agnes
>Hi there,
>
>exists a function in the Win-Api to delete a key or a section in an ini-file?
>
>Thanks in advance
>
>Thomas
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform