[fpc-devel] Recent changes to TField.SetData
michael.vancanneyt at wisa.be
michael.vancanneyt at wisa.be
Tue Apr 5 09:10:12 CEST 2011
On Mon, 4 Apr 2011, Luiz Americo Pereira Camara wrote:
> 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.
Ok. I will move the code.
Michael.
More information about the fpc-devel
mailing list