I have a SQLite3 db in a DBGrid with a Label below it on a form. One of the tables has three records, five fields each. One is a name field. What I'm trying to do is, either by clicking or scrolling, make the Label.caption := the name in the name field. Once I get this then I can use other tables to reflect data based on the name selected. This is just test stuff to meet that end.
The only thing I've came up with is this:
Label1.Caption:=DBGrid1.SelectedField.CurValue;
But I have to hop from field to field (column to column) to get it to change. And then I get a segment fault when I end the program.
I've tried everything I can think of before making this post. If you can send me off in the right direction, I'd appreciate you. Thanks.