|
@@ -325,6 +325,7 @@ begin
|
|
{$endif}
|
|
{$endif}
|
|
FRecordcount := 0;
|
|
FRecordcount := 0;
|
|
RecalcBufListSize;
|
|
RecalcBufListSize;
|
|
|
|
+ FEOF := (FRecordcount = 0);
|
|
{$ifdef dsdebug}
|
|
{$ifdef dsdebug}
|
|
Writeln ('Setting state to browse');
|
|
Writeln ('Setting state to browse');
|
|
{$endif}
|
|
{$endif}
|
|
@@ -697,13 +698,6 @@ begin
|
|
Writeln('Setting buffer list size');
|
|
Writeln('Setting buffer list size');
|
|
{$endif}
|
|
{$endif}
|
|
|
|
|
|
- if (ABuffercount<FRecordcount) then
|
|
|
|
- begin
|
|
|
|
- for i := 0 to (FActiveRecord-ABuffercount) do
|
|
|
|
- shiftbuffersbackward;
|
|
|
|
- FActiverecord := ABuffercount -1;
|
|
|
|
- end;
|
|
|
|
-
|
|
|
|
SetBufListSize(ABufferCount);
|
|
SetBufListSize(ABufferCount);
|
|
GetNextRecords;
|
|
GetNextRecords;
|
|
{$Ifdef dsDebug}
|
|
{$Ifdef dsDebug}
|
|
@@ -768,12 +762,20 @@ begin
|
|
{$ifdef dsdebug}
|
|
{$ifdef dsdebug}
|
|
Writeln (' Freeing buffers :',FBufferCount-Value);
|
|
Writeln (' Freeing buffers :',FBufferCount-Value);
|
|
{$endif}
|
|
{$endif}
|
|
|
|
+ if (value > -1) and (FActiveRecord>Value-1) then
|
|
|
|
+ begin
|
|
|
|
+ for i := 0 to (FActiveRecord-Value) do
|
|
|
|
+ shiftbuffersbackward;
|
|
|
|
+ FActiverecord := Value -1;
|
|
|
|
+ end;
|
|
|
|
+
|
|
If Assigned(FBuffers) then
|
|
If Assigned(FBuffers) then
|
|
begin
|
|
begin
|
|
For I:=Value+1 to FBufferCount do
|
|
For I:=Value+1 to FBufferCount do
|
|
FreeRecordBuffer(FBuffers[i]);
|
|
FreeRecordBuffer(FBuffers[i]);
|
|
ReAllocMem(FBuffers,(Value+1)*SizeOf(Pchar));
|
|
ReAllocMem(FBuffers,(Value+1)*SizeOf(Pchar));
|
|
end;
|
|
end;
|
|
|
|
+ if FRecordcount > Value then FRecordcount := Value;
|
|
end;
|
|
end;
|
|
If Value=-1 then
|
|
If Value=-1 then
|
|
Value:=0;
|
|
Value:=0;
|
|
@@ -1547,7 +1549,8 @@ begin
|
|
exit;
|
|
exit;
|
|
end;
|
|
end;
|
|
FCurrentRecord := 0;
|
|
FCurrentRecord := 0;
|
|
-
|
|
|
|
|
|
+ FEOF := false;
|
|
|
|
+ FBOF := false;
|
|
|
|
|
|
// If we've arrived here, FBuffer[0] is the current record
|
|
// If we've arrived here, FBuffer[0] is the current record
|
|
If (rmCenter in Mode) then
|
|
If (rmCenter in Mode) then
|
|
@@ -1685,7 +1688,13 @@ end;
|
|
|
|
|
|
{
|
|
{
|
|
$Log$
|
|
$Log$
|
|
- Revision 1.19 2004-08-14 12:46:36 michael
|
|
|
|
|
|
+ Revision 1.20 2004-08-21 21:10:00 michael
|
|
|
|
+ * Patch from Joost van der Sluis
|
|
|
|
+ - Empty recordsets don't show any bogus data anymore
|
|
|
|
+ - Floatfiels.gettext fix
|
|
|
|
+ - SetBufListsize fix forTDBGrid
|
|
|
|
+
|
|
|
|
+ Revision 1.19 2004/08/14 12:46:36 michael
|
|
+ Patch from Joost van der Sluis to implement Modified and UpdateRecord event
|
|
+ Patch from Joost van der Sluis to implement Modified and UpdateRecord event
|
|
|
|
|
|
Revision 1.18 2004/08/13 07:06:02 michael
|
|
Revision 1.18 2004/08/13 07:06:02 michael
|