Recent

Author Topic: [SOLVED] TDB Controls Help  (Read 487 times)

vdubeau

  • New Member
  • *
  • Posts: 27
[SOLVED] TDB Controls Help
« on: July 09, 2024, 02:31:16 am »
I'm trying to put a TDBEdit control on a form. When I click in the field box in the inspctor Lazarus tells me that it can't create a lit of fields,
i have a DBConnection, Datasoure and SQL controls on the form and set up. Obviously there is something that I am missing.

Help would be much appreciated.

Thanks
« Last Edit: July 09, 2024, 05:42:28 pm by vdubeau »

dsiders

  • Hero Member
  • *****
  • Posts: 1217
Re: TDB Controls Help
« Reply #1 on: July 09, 2024, 02:42:43 am »
I'm trying to put a TDBEdit control on a form. When I click in the field box in the inspctor Lazarus tells me that it can't create a lit of fields,
i have a DBConnection, Datasoure and SQL controls on the form and set up. Obviously there is something that I am missing.

Help would be much appreciated.

Thanks

Sounds like the database conmnection or the datset is not active. You can't get the field list for a closed dataset.
Preview Lazarus 3.99 documentation at: https://dsiders.gitlab.io/lazdocsnext

vdubeau

  • New Member
  • *
  • Posts: 27
Re: TDB Controls Help
« Reply #2 on: July 09, 2024, 05:41:39 pm »
I finally figured out that you need an actual quewry in your SQLQuery. Then the field list shows up.

 

TinyPortal © 2005-2018