I have a table with a field AUTO_INCREMENT ( Es. NUMBER ) , sometimes I need to replace a value in NUMBER ( which doesn't exist ) .
If I do it with ADO command it works
Es: oRs:Fields( "NUMBER" ):Value := 15
but if I do with TdataRow I have a error .
Es:
oRec:NUMBER := 15
oRec:Save()
I think that the problem is in METHOD dr_FieldPut( cnfld, uVal ) CLASS TDataRow
- Code: Select all Expand view
...
if ::lReadOnly .or. ( Len( ::aData[ fld ] ) > 2 .and. ::aData[ fld, 3 ] == .f. )
return ::error( HB_LangErrMsg( 39 ), ::className(), ::FieldName( fld ), 39, { uVal } )
...
Is it possible tDataRow works in the same way as ADO ?
Maurizio