Changes between Version 8 and Version 9 of Docs/Prog/Manual/ApplicationLibraries/lib825db


Ignore:
Timestamp:
10/23/25 07:10:08 (3 weeks ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825db

    v8 v9  
    4040Replace with code similar to:
    4141{{{
    42         if(appDBcfg.GetDBType() == CAppDatabaseCfg::appDataMySQL) {
    43                 appDB = new CDBMySQL(appDBcfg.GetServer(), appDBcfg.GetUser(), appDBcfg.GetPassword(), appDBcfg.GetDatabase());
    44         } else {
    45                 path = appDataPath + "ids.db3";
    46                 appDB = new CDBSQLite(path);
    47         }
     42if(appDBcfg.GetDBType() == CAppDatabaseCfg::appDataMySQL) {
     43   appDB = new CDBMySQL(appDBcfg.GetServer(), appDBcfg.GetUser(), appDBcfg.GetPassword(), appDBcfg.GetDatabase());
     44} else {
     45   path = appDataPath + "ids.db3";
     46   appDB = new CDBSQLite(path);
     47}
    4848
    49         if(appDB->OpenDatabase() == false) {
    50 
    51                 DEBUG_MSG("Error [%s]\n", appDB->GetErrorMsg().c_str());
    52                 DrawErrorBox("Cannot open database", 4);
    53                 return false;
    54         }
    55 
    56 
     49if(appDB->OpenDatabase() == false) {
     50   DEBUG_MSG("Error [%s]\n", appDB->GetErrorMsg().c_str());
     51   DrawErrorBox("Cannot open database", 4);
     52}
    5753}}}
    5854