Icon View Incident Report

Minor Minor
Reported By: Roy Jonker
Reported On: 11/7/2007
For: Version 1.06 Build 1
# 2482 Setting TEDBTable RecNo Property with Range Set Causes Incorrect Row Positioning

This code works on a table 'ConfigTbl', with a single integer field 'ConfigIndex' as index. Typical field values are imply 1, 2, ...

On a table with three records, this piece of code ...
==========
   for i := 1 to ConfigTbl.RecordCount do
   begin
     ConfigTbl.RecNo := i;
     codesite.Send('cfg 1', ConfigTblConfigIndex.AsInteger);
   end;
==========
gives me this codesite output:

cfg 1 = 1
cfg 1 = 2
cfg 1 = 2

But this loop .(run immediately after the first loop)..
==========
     ConfigTbl.First;
     for i := 1 to ConfigTbl.RecordCount do
     begin
       codesite.Send('cfg 2', ConfigTblConfigIndex.AsInteger);
       ConfigTbl.Next;
     end;

==========
.... gives me the correct results:

cfg 2 = 1
cfg 2 = 2
cfg 2 = 3



Comments Comments
The issue was an active range due to a master-detail link.


Resolution Resolution
Fixed Problem on 11/10/2007 in version 1.07 build 1


Products Affected Products Affected
ElevateDB VCL Client-Server
ElevateDB VCL Client-Server with Source
ElevateDB VCL Standard
ElevateDB VCL Standard with Source
ElevateDB VCL Trial

Image