[SOLVED] How to get text from a TDBText, TDBMemo or TDBEdit? lazarus / 16-Databases ---------------------------------------------------------------------- vasskalinin · 2016-12-03 17:32 When I use any of them they display the field content, but I don't know how to use their text on the program, or is there other way to obtain the text of a specific field that results from a SQL query? ---------------------------------------------------------------------- Thaddy · 2016-12-03 17:44 property text. ---------------------------------------------------------------------- vasskalinin · 2016-12-03 18:06 Oh, I didn't notice TDBEdit does have it, TDBText doesn't. ---------------------------------------------------------------------- FTurtle · 2016-12-03 22:44 If you will work via fields instead controls then you can use field's property AsString ---------------------------------------------------------------------- vasskalinin · 2016-12-04 19:34 Quote from: FTurtle on December 03, 2016, 11:44:25 pmIf you will work via fields instead controls then you can use field's property AsString How do I do that? ---------------------------------------------------------------------- FTurtle · 2016-12-04 20:14 Quote from: vasskalinin on December 04, 2016, 08:34:33 pmHow do I do that? See example: http://wiki.freepascal.org/SqlDBHowto#Example:_reading_data_from_a_tab le ---------------------------------------------------------------------- vasskalinin · 2016-12-05 02:11 Thank you!