Sign in to follow this  
Followers 0
merriman

Problem with IniDelete

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0