merriman Posted August 2, 2006 Share Posted August 2, 2006 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 Link to comment Share on other sites More sharing options...
Valik Posted August 2, 2006 Share Posted August 2, 2006 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. Link to comment Share on other sites More sharing options...
merriman Posted August 2, 2006 Author Share Posted August 2, 2006 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now