Op 09-01-12 17:34, Ludo Brands schreef:
...
Normally, when you need to use field events, you would create persistent fields. With Fielddefs populated, double click on the TSQLQuery and click on the + sign. You'll see a list of all fielfs in fielddefs. Select all fields and OK. You have now created persistent fields as opposed to fields created automatically by opening a dataset. All field settings are now permanent, including events assigned to them.
That's the point of my application. It should to be able to select various tables (only one at each time) and then use these tables to create labels from them, using LazReport. As I experienced with LazReport, there should be fields defined for the used tables, otherwise, you can't use the fields when you design a report. Unfortunately, some of the table's fields contain spaces at the end of the data. Those spaces should be removed. That's what I do in the event.
Now that I'm writing this, maybe I could do this in an event of the report. I'll try this.
Thanks for your help, Koenraad -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus