0

Are TListBindSourceAdapter and TObjectBindSourceAdapter able to create new objects whose constructors require parameters? For example,

MyObject := TMyObject.Create(AParameter: TObject);

If yes, how can I code this?

Terry Thompson
  • 489
  • 2
  • 15
  • Actually, my question more applies to TListBindSourceAdapter and inserting new records using TDbNavigator at runtime. – Terry Thompson Jan 18 '19 at 19:56
  • Why do you even need to create a new object when inserting new records into database? I have never heard of such approach. – SilverWarior Jan 19 '19 at 10:20
  • @SilverWarior. I am not creating an object to insert in the database. Livebindings can automatically create objects when you bind a list to a grid and either click the insert button on a DBNavigator or when you move past the last record in the grid. When it does, it uses a parameterless constructor. My question is how I can inject parameters. – Terry Thompson Jan 19 '19 at 23:23

0 Answers0