[fpc-devel] Recent changes to TField.SetData
Luiz Americo Pereira Camara
luizmed at oi.com.br
Mon Apr 4 22:00:56 CEST 2011
On 4/4/2011 10:28, michael.vancanneyt at wisa.be wrote:
>
>
> On Mon, 4 Apr 2011, LacaK wrote:
>
>> Michael Van Canneyt wrote / napĂsal(a):
>>>
>>>
>>> On Mon, 4 Apr 2011, LacaK wrote:
>>
>> Then please move approprate code at least into
>> TCustomBufDataset.SetFieldData
>> Thanks
>
> This code was already there.
>
> Should the 'Validate' code be moved there too ?
Yes. TDataset descendants are responsible to calling Validate, e.g.,
zeos call it inside TZAbstractRODataset.SetFieldData.
One of the reasons of letting descendants call it it's too improve
granularity so Validate can be called in the middle of the routine, as
is in zeos, instead to force the call before the TDataset routine.
Luiz
More information about the fpc-devel
mailing list