🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.ado
2 messages
2 total messages Started by Mtronix Tue, 16 Oct 2007 12:41
What is the ADO exception?
#130
Author: Mtronix
Date: Tue, 16 Oct 2007 12:41
73 lines
1672 bytes
Hello,
    I am migrating from BDE to ADO.  I have the following BDE code

try

{

Session->GetTableNames(databaseCersr->DatabaseName, "", false, false, 
TableList);

if (TableList->IndexOf(TableName) >= 0)

{

retVal = true;

}

}

catch(EDBEngineError &e)

{

}

delete TableList;

return retVal;

}



I am changing it to this

try

{


databaseCersr->GetTableNames(TableList,false);

if (TableList->IndexOf(TableName) >= 0)

{

retVal = true;

}

}

catch(EDBEngineError &e)

{

}

delete TableList;

return retVal;

}



Though I found out that EDBEngineError is not the proper catch.  Can someone 
tell me what is?



Thanks
Re: What is the ADO exception?
#65
Author: Mike K
Date: Mon, 03 Dec 2007 20:57
11 lines
1114 bytes
Not sure if this helps, but I use


bool Query_fail = false;
try
{
	ExecSql(S);
}catch(Exception &e){
	ErrMsg = e.Message
	Query_fail = true;
}
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads