On Tue, 1 Oct 2013, Dennis Poon wrote:

Since TBufDataSet is in-memory, to speed things up, how can I directly access the N'th record and M'th field's value as Variant?

Simply said: You cannot.


Can any one suggest an in-memory dataset in fpc/lazarus that allows direct access?

Does TMemDataset allow it?

No. The architecture of TDataset does not allow this.

The buffer mechanism is quite complicated, and there are quite some layers to 
go through.

T(Mem)Dataset is not just an array of records. The records can be at wildly 
different locations,
the values may or may not be computed. Blobs are stored entirely in different 
locations etc.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to