mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-11 13:29:18 +02:00
- implemented ControlsDisabled
- implemented TUpdateMode, TProviderFlags - implemented TIndexDef, TIndexDefs - added error message for if transaction of DB is not set - removed some duplicate definitions - restructured SetDataset - implemented UpdateMode, ProviderFlags
This commit is contained in:
parent
c1e71cde91
commit
010ccd8554
@ -101,47 +101,45 @@ var x : longint;
|
||||
NullMask : pbyte;
|
||||
|
||||
begin
|
||||
begin
|
||||
Result := grOK;
|
||||
case GetMode of
|
||||
gmPrior :
|
||||
if FIsBOF then
|
||||
result := grBOF
|
||||
else if FBCurrentRecord <= 0 then
|
||||
begin
|
||||
Result := grBOF;
|
||||
FBCurrentRecord := -1;
|
||||
end
|
||||
else
|
||||
begin
|
||||
Dec(FBCurrentRecord);
|
||||
FIsEof := false;
|
||||
end;
|
||||
gmCurrent :
|
||||
if (FBCurrentRecord < 0) or (FBCurrentRecord >= RecordCount) then
|
||||
Result := grError;
|
||||
gmNext :
|
||||
if FIsEOF then
|
||||
result := grEOF
|
||||
else if FBCurrentRecord >= (FBRecordCount - 1) then
|
||||
begin
|
||||
if getnextpacket > 0 then
|
||||
begin
|
||||
Inc(FBCurrentRecord);
|
||||
FIsBof := false;
|
||||
end
|
||||
else
|
||||
begin
|
||||
FIsEOF := true;
|
||||
result:=grEOF;
|
||||
end
|
||||
end
|
||||
else
|
||||
Result := grOK;
|
||||
case GetMode of
|
||||
gmPrior :
|
||||
if FIsBOF then
|
||||
result := grBOF
|
||||
else if FBCurrentRecord <= 0 then
|
||||
begin
|
||||
Result := grBOF;
|
||||
FBCurrentRecord := -1;
|
||||
end
|
||||
else
|
||||
begin
|
||||
Dec(FBCurrentRecord);
|
||||
FIsEof := false;
|
||||
end;
|
||||
gmCurrent :
|
||||
if (FBCurrentRecord < 0) or (FBCurrentRecord >= RecordCount) then
|
||||
Result := grError;
|
||||
gmNext :
|
||||
if FIsEOF then
|
||||
result := grEOF
|
||||
else if FBCurrentRecord >= (FBRecordCount - 1) then
|
||||
begin
|
||||
if getnextpacket > 0 then
|
||||
begin
|
||||
Inc(FBCurrentRecord);
|
||||
FIsBof := false;
|
||||
end;
|
||||
end;
|
||||
end
|
||||
else
|
||||
begin
|
||||
FIsEOF := true;
|
||||
result:=grEOF;
|
||||
end
|
||||
end
|
||||
else
|
||||
begin
|
||||
Inc(FBCurrentRecord);
|
||||
FIsBof := false;
|
||||
end;
|
||||
end;
|
||||
|
||||
if Result = grOK then
|
||||
|
Loading…
Reference in New Issue
Block a user