Page 1 of 1

TVirtualTable calculated problem

Posted: Tue 30 Sep 2008 09:21
by kaffeburk
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.

Posted: Thu 02 Oct 2008 09:26
by Dimon
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.