Thomas,
yes there is.
Assuming you have a
real file:
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.
OffThere is no place like [::1]