change "Section" in CONFIG.INI

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

change "Section" in CONFIG.INI

Post 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 :?:
have fun
Jimmy
User avatar
serge_girard
Posts: 3309
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: change "Section" in CONFIG.INI

Post 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
There's nothing you can do that can't be done...
Post Reply