What does "Calculated" do?
On Thu, Dec 13, 2012 at 11:57 PM, Howard Page-Clark <[email protected]>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 > [email protected].**freepascal.org<[email protected]> > http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarus<http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus> >
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
