>Hi there,
>
>exists a function in the Win-Api to delete a key or a section in an ini-file?
>
>Thanks in advance
>
>Thomas
Thomas, If You place NULL in third parameter of the WritePrivateProfileString with NULL it will delete the key of that section, If You place NULL for second parameter it will delete entire section, i.e.:
DECLARE INTEGER WritePrivateProfileString IN Win32API AS WritePrivStr ;
String cSection, String cKey, String cValue,;
String cINIFile
WritePrivStr("TestSection","SomeKey",NULL,"c:\myIniFile.INI")
WritePrivStr("TestSection",NULL,NULL,"c:\myIniFile.INI")
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.