Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions

tin110_SQLRecord tin110_SQLResultTable::nextRecord (  ) 

------------------------------------------------------------------------- function: nextRecord ------------------------------------------------------------------------- description: fetches and returns the next record

Check sqlRc() or lastEvent() for errors.

return value: a record object

-------------------------------------------------------------------------

Definition at line 634 of file vin110.cpp.

References m_EvtLast.

{
  FUNCTION_DBG_MIN100(_T("tin110_SQLResultTable :: nextRecord"));

  m_EvtLast.eo200_ClearEventList();
  m_nSqlRc   = cin01_db_ok;

  // execute select
  m_nSqlRc = i29nextrecord(m_pSession);

  // error handling
  if (m_nSqlRc != cin01_db_ok) {
    tsp00_C256c    szError;
    i29errmsg(m_pSession, szError);
    teo200_EventList lEvtList(FUNCTION_NAME_MIN100, ERR_SQLSQL_IN100, m_nSqlRc, szError.asCharp());
    m_EvtLast = lEvtList;
  } // end if

  tin110_SQLRecord aRecord (m_pSession);

  return aRecord;
} // end tin110_SQLResultTable :: record


Generated by  Doxygen 1.6.0   Back to index