Jump to content

Recommended Posts

Posted

I am using IniDelete to delete a value, however, it always returns a 1 regardless of wether it finds the value or not. Anyone else had this problem ?

Best Regards Merriman

Posted

The documentation is wrong. The function only returns 0 if the file does not exist or if the file is read-only. The function returns 1 if the key/section was deleted or if the key/section did not exist. In both cases, the result is the same, the key/section is gone.

Posted

The documentation is wrong. The function only returns 0 if the file does not exist or if the file is read-only. The function returns 1 if the key/section was deleted or if the key/section did not exist. In both cases, the result is the same, the key/section is gone.

Thanks for your prompt reply. The correct usage does make more sense.

Best Regards Merriman

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...