Exemplo n.º 1
0
        //---------------------------------------------------//
        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);
            }
        }
Exemplo n.º 2
0
        //---------------------------------------------------//
        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);
            }
        }