Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADO exception catch

Status
Not open for further replies.

leit0050

Technical User
Sep 4, 2007
29
US
hello,
I am migrating from BDE to ADO. I have the following BDE Code

try
{
Session->GetTableNames(database->DatabaseName, "", false, false, TableList);
if (TableList->IndexOf(TableName) >= 0)
{
retVal = true;
}
}
catch(EDBEngineError &e)
{
}
delete TableList;
return retVal;
}

I am replacing it with

try
{

database->GetTableNames(TableList,false);

if (TableList->IndexOf(TableName) >= 0)
{
retVal = true;
}
}
catch(EDBEngineError &e)
{
}
delete TableList;
return retVal;
}

What I don't know is what replaced EDBEngineError &e with ADO vs BDE. Can someone tell me what the new exception is?

Thanks
 
I suggest you start with the EADOError listing in the help file. See if that leads you to where you need to go.



James P. Cottingham
-----------------------------------------
[sup]I'm number 1,229!
I'm number 1,229![/sup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top