Settings_save_one() return -2

settings_test.rar

I create a project to learn details of settings module and code as above.

When the code running ,I try to trigger settings_save_one to save data,the function return -2.

How can I repair it?

Parents Reply
  • I just combine buttons with settings in my code.Just realize that press button to trigger settings opration.

    I want to press button1 to save data,press button2 to delete data,press button3 to call settings_load() so that know how many datas are saved and press button4 to change a param so that the data be saved will change that will be save next time.

    And now I run my code and press button1.The settings_save_one() will return -2.

    I want to know why it failed and how to change it.

Children
Related