I'm a SQLite3 newbee working on a test project (attached). I've got most things working as desired, but can't figure out how to do the following. If I highlight one of the records (in the grid) and click btnSelect, I want the value of Field 3 to be copied to the static label. After the copying is done, ALL the records in the table must remain visible in the grid. Can anyone suggest code (for the OnClick event) that will assign the value of the highlighted record field into the str variable?
Windows 10, Laz 2.0.6, FPC 3.0.4