Page 1 of 1

change "Section" in CONFIG.INI

Posted: Mon Feb 06, 2023 5:26 am
by AUGE_OHR
hi,

if i add "Section" in INI i have to delete old INI else change will not appear in INI :(

it have to do with

Code: Select all

   IF !FILE( "Config.ini" )
      // write File
      SET Section ...
   ELSE
      // read File
      GET ...
   ENDIF
is there a Way to enhance INI "Section" without delete INI :?:

Re: change "Section" in CONFIG.INI

Posted: Mon Feb 06, 2023 7:42 am
by serge_girard
Jimmy,

This should work:

Code: Select all

   cDNLPath := 'c:\'
   cUPLPath := 'c:\'
   BEGIN INI FILE ( "c:\test\dirselect.ini")
      SET SECTION "General" ENTRY "DNLPath" to cDNLPath
   END INI

Serge