//---------------------------------------------------// public clDB(String connectionString, ENUM_DB_TYPE DBType) { m_con = null; m_rec = null; eof = true; m_db_type = DBType; try { m_con = new OdbcConnection(connectionString); m_con.Open(); } catch(Exception e) { m_con = null; Form1.addError(e.Message); } }
//---------------------------------------------------// public clDB(String connectionString, ENUM_DB_TYPE DBType) { m_con = null; m_rec = null; eof = true; m_db_type = DBType; try { m_con = new OdbcConnection(connectionString); m_con.Open(); } catch (Exception e) { m_con = null; Form1.addError(e.Message); } }