UNIFACE 9.7.03 (G306) : how using deletesetting to delete inisections ?

Author: gls.tools@free.fr (Gilles)

Hi all, I want to delete [section] in my ini file. This section is empty. My inifile named fichier.ini: [raccourcis] Test URL = http://serveur.com:8085 [Test URL] image=test.png description= URl en test groupe=DEV  I can delete settings but can not delete section: deletesetting(fichier.ini,"raccourcis\Test URL","INIDATA") ----> OK if($status=0) deletesetting(fichier.ini,"Test URL\·*","INISETTINGS") ----> OK my section is empty if($status=0) deletesetting(fichier.ini,"Test URL","INISECTIONS") ---> KO ----> Get error -1118     Trying with  gold *, gold ?, adding \ after or before , same result or error -5 What is the correct syntax ? Thanks in advance, Gilles.


  1. Hi Gilles, There's nothing really wrong with the syntax you are using. The problem here is that deleting a section of an INI file (using deletesetting) used to work in Uniface 9.3, but since version 9.4 it will return an error (the mentioned error -1118). This looks like a bug. Sorry. I had a quick look into the known issues list, but this apparently has not been reported before. I'll create a new bug report for this. Hope this helps. Kind regards, Daniel Iseli Uniface Technical Support

    Author: diseli (daniel.iseli@uniface.com)
  2. Hi Daniel, Ok, thank you for all. Gilles.

    Author: Gilles (gls.tools@free.fr)
  3. Just a quick update: I've created in meantime the BUG#31496 (deletesetting: deleting an empty section is failing since version 9.4.01) for this problem.

    Author: diseli (daniel.iseli@uniface.com)