Klint
April 1st, 1999, 09:41 AM
I'm attempting to perform a GetFieldValue from an ODBC Database immediately after doing an Edit-Update on the database.
However, the code is throwing an exception. When I attempt a Try-Catch-Throw operation, I am recieving an empty error
code. Any advice would be appreciated! Thanks in advance... below is a snipit of the code:
** dis & m_pCarStat are instances of the ODBC Database **
---------------------------------------------------------
m_EDITBOX1.GetWindowText(EditString);
dis->Edit( );
dis->m_AISLE = EditString;
dis->Update( );
dis->MoveFirst( );
m_pCarStat->MoveFirst();
if (m_pCarStat->IsFieldDirty(&"AISLE"))
{
try
{
m_pCarStat->GetFieldValue( "AISLE", m_FETCHVAR);
}
catch (CDBException* e)
{
AfxMessageBox( e->m_strError, MB_ICONEXCLAMATION );
e->Delete();
throw;
}
}
However, the code is throwing an exception. When I attempt a Try-Catch-Throw operation, I am recieving an empty error
code. Any advice would be appreciated! Thanks in advance... below is a snipit of the code:
** dis & m_pCarStat are instances of the ODBC Database **
---------------------------------------------------------
m_EDITBOX1.GetWindowText(EditString);
dis->Edit( );
dis->m_AISLE = EditString;
dis->Update( );
dis->MoveFirst( );
m_pCarStat->MoveFirst();
if (m_pCarStat->IsFieldDirty(&"AISLE"))
{
try
{
m_pCarStat->GetFieldValue( "AISLE", m_FETCHVAR);
}
catch (CDBException* e)
{
AfxMessageBox( e->m_strError, MB_ICONEXCLAMATION );
e->Delete();
throw;
}
}