RecordStatus property (TCustomADODataSet)Indicates the status of the current row.Delphi syntax:property RecordStatus: TRecordStatusSetC++ syntax:__property TRecordStatusSet RecordStatus = {read=GetRecordStatus, nodefault};DescriptionRead RecordStatus to determine the status of the current row relative to batch updates or other bulk operations. Among other record state aspects, RecordStatus indicates whether the current record is new, modified, deleted, or unmodified. RecordStatus will also give an indication why a row is not saved when modifying, adding, or deleting data.type TRecordStatus = (rsOK, rsNew, rsModified, rsDeleted, rsUnmodified, rsInvalid, rsMultipleChanges, rsPendingChanges, rsCanceled, rsCantRelease, rsConcurrencyViolation, rsIntegrityViolation, rsMaxChangesExceeded, rsObjectOpen, rsOutOfMemory, rsPermissionDenied, rsSchemaViolation, rsDBDeleted); TRecordStatusSet = set of TRecordStatus;通过RecordStatus可以判断当前记录是否是删除状态
TRecordStatus = (rsOK, rsNew, rsModified, rsDeleted, rsUnmodified, rsInvalid, rsMultipleChanges, rsPendingChanges, rsCanceled, rsCantRelease, rsConcurrencyViolation, rsIntegrityViolation, rsMaxChangesExceeded, rsObjectOpen, rsOutOfMemory, rsPermissionDenied, rsSchemaViolation, rsDBDeleted);
TRecordStatusSet = set of TRecordStatus;通过RecordStatus可以判断当前记录是否是删除状态
其状态有以下几个枚举值:
rsOK、rsNew、rsModified、rsDeleted、rsUnmodified、rsPendingChanges、rsCanceled等等,不再列举,详细查看delphi的帮助。