` Printed Icetips Article

Icetips Article



Par2: Remove INI file section
2002-01-03 -- John Christ III
 
> Is it possible to remove a section in an INI-file?

Use the Windows API function WritePrivateProfileString:

MODULE('windows.lib')
  WritePrivateProfileStringA(*CSTRING, LONG, LONG, *CSTRING), |
                                        SHORT, PASCAL, RAW, DLL
END

Dummy = WritePrivateProfileStringA(SectionName, 0, 0, IniFilename)



Printed November 21, 2024, 7:31 am
This article has been viewed/printed 35220 times.