On 10/31/2014 10:06 AM, Luca Olivetti wrote:
El 30/10/14 a les 22:44, Michael Van Canneyt ha escrit:
Delphi DBGrid does not use recno, so it must be possible... AFAIK
TDatalink has special provisions to provide a window buffer.
Well, if you "fix" the dbgrid not to use RecNo, I'm still left with my
original problem of knowing if I'm positioned at the first or the last
record (specifically for a TSdfDataset, where FCurRec is the correct
answer, and I still think it would be the correct value for RecNo).
With .eof and .bof? But those are not always set, you have to use 'next'
or 'prior' to really know if you are at the first or last record.
(TSdfDataset is not buffered, but with a buffered dataset there really
is no other way to detect the first or last record, since it could be
that those records are simply not fetched yet)
Joost.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal