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 -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
