TVirtualTable calculated problem

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
kaffeburk
Posts: 214
Joined: Mon 29 Jan 2007 08:03

TVirtualTable calculated problem

Post by kaffeburk » Tue 30 Sep 2008 09:21

I have defined a Field as "calculated" and put the calculation in the "onGetText" event for the Field. Works fine when the field is displayed in the DBGrid, but when i try to retrieve the value with the FieldByName method, the result is empty.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Thu 02 Oct 2008 09:26

TVirtualTable does not create internal buffer for saving values of calculated and lookup fields, therefore to get the value of this field you should use the TField.Text property.

Post Reply