Hi,
we have mixed meaning of subCode (3rd parameter of commonError()) in
rddads. Sometimes it is DBF compatible value, ex.:
commonError( pArea, EG_UNLOCKED, EDBF_UNLOCKED, 0, NULL, 0, NULL );
commonError( pArea, EG_DATATYPE, 1020, 0, NULL, 0, NULL );
In other cases it is error value returned by ADS:
commonError( pArea, EG_CORRUPTION, ( HB_ERRCODE ) u32RetVal, 0,
NULL, EF_CANDEFAULT, NULL );
I have a proposal to move ads error value to osCode and leave subCode
zero, if we do not return a dbf compatible error. This change also
allows to get more precise error description by using
AdsGetErrorString(), since we will know ads error in all cases.
Any objections?
Regards,
Mindaugas
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour