[Lazarus] Is this bug ? or how to do?

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Mar 1 17:24:48 CET 2014


TFieldProperty.FillValues is virtual and has only two lines of code.
The default implementation searches a property named 'DataSource'.
You can override it to fetch DataSource from many different sources:
For example from any property with type TDataSource, or depending on the
selection or from the form or whatever ...

I made the formerly hidden function LoadDataSourceFields public as
ListDataSourceFields, so you can implement any of the above easily.
Including using another property name than 'DataSource'.

Mattias





More information about the Lazarus mailing list