[fpc-pascal] how to directly access field/record value of TBufDataSet?

Marcos Douglas md at delfire.net
Mon Sep 30 20:53:17 CEST 2013


On Mon, Sep 30, 2013 at 8:09 AM, Dennis Poon <dennis at avidsoft.com.hk> 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?
> [...]

You can use buf.RecNo and buf.FieldByName('field_name') OR buf.Fields[i].

Marcos Douglas



More information about the fpc-pascal mailing list