Can't see why error occurs when adding records?

Can't see why error occurs when adding records?

Post by Charles C » Sun, 24 Oct 2004 00:23:09


Hi,

The code below generates an "Unexpected error from external database driver
(10019)." for the line TSet.m_S12=qsa[11]-qs[11];

I am using Clipper database files (dbf) through ODBC.

The values are integers just like in the other 3 lines.

If I add qsa[11]+qs[11] there is no problem.

The error happens only when I subtract and only for a few of the records
from which qs[11] is assigned. These records are also no different from the
other records in that dbf.

qsa[11] and qs[11] are both okay integers by themselves.

I just cannot see why the error occurs.


TSet.AddNew();

TSet.m_S10=qsa[9]-qs[9];
TSet.m_S11=qsa[10]-qs[10];
TSet.m_S12=qsa[11]-qs[11]; //causes error on some recs, rec's fields
//are similar to others
TSet.m_S13=qsa[12]-qs[12];

TSet.Update();

Thanks.
 
 
 

Can't see why error occurs when adding records?

Post by Charles C » Sun, 24 Oct 2004 07:49:04

The problem was that particular field's width.

Thanks.



driver
the
others