[Lazarus] Difference between Delphi 2010 / Lazarus
Howard Page-Clark
hdpc at talktalk.net
Thu Dec 13 23:57:22 CET 2012
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.
More information about the Lazarus
mailing list