[Lazarus] Difference between Delphi 2010 / Lazarus

Kostas Michalopoulos badsectoracula at gmail.com
Fri Dec 14 10:38:16 CET 2012


What does "Calculated" do?


On Thu, Dec 13, 2012 at 11:57 PM, Howard Page-Clark <hdpc at talktalk.net>wrote:

> On 13/12/12 9:45, Jorge Gonçalves wrote:
>
>> Hi,
>> I'm translating one application from delphi  to lazarus, and I'm having
>> some problems with the way lazarus and delphi stores calculate fields in
>> the dfm.
>> The delphi store one more property :"Calculated". This property is
>> public and are stored using the procedure DefineProperties at TField
>> level.
>>
>> dfm example :
>> Delphi :
>>     object DetailsTOTAL: TFloatField
>>        FieldKind = fkCalculated
>>        FieldName = 'TOTAL'
>>        DisplayFormat = '0.00'
>> *   Calculated = True*
>>
>>      end
>>
>> Lazarus :
>>     object DetailsTOTAL: TFloatField
>>        FieldKind = fkCalculated
>>        FieldName = 'TOTAL'
>>        DisplayFormat = '0.00'
>>      end
>>
>> Any easy way to solve the problem ?
>>
>
> Bit of a hack, but you could use the Tag property as a boolean on Lazarus.
> Its published, so is stored in the .lfm. But obviously this would require
> {$IFDEF  } to compile on Delphi too.
>
>
> --
> ______________________________**_________________
> Lazarus mailing list
> Lazarus at lists.lazarus.**freepascal.org<Lazarus at lists.lazarus.freepascal.org>
> http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarus<http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20121214/ac584928/attachment-0003.html>


More information about the Lazarus mailing list