ADO Error exception handling?
问题 I just switched from using the BDE to ADO by replacing the Tables and Queries to its equivalent in ADO components. I'm always execute the query inside try...catch like this: //Fdm is Data Module //TEndOfDay is TTable //QEndOfDay is TQuery Screen->Cursor = crSQLWait; Fdm->QEndOfDay->SQL->Add("SELECT * FROM TEndOfDay"); try{ Fdm->QEndOfDay->ExecSQL(); Fdm->QEndOfDay->Open(); Screen->Cursor = crDefault; } catch (EDBEngineError &DBEngineError){ strError = DBEngineError.Message; Screen->Cursor =