TMyQuery and populating a TTreeView
Posted: Sun 18 Feb 2007 18:45
Hello,
I'm trying to populate a TTreeView with the results of a TMyQuery.
The query returns a single list of items (1 field)
Obviously this will not compile.... so is there a way.
This seems so simple, but I've been pounding my head for over 2 hours.
Thanks!
Bryan
I'm trying to populate a TTreeView with the results of a TMyQuery.
The query returns a single list of items (1 field)
Code: Select all
for x := 0 to MyQuery1.RecordCount - 1 do
TreeView1.Items.AddChild(MainNode, MyQuery1.FieldByName('storm_id')[x].AsString);This seems so simple, but I've been pounding my head for over 2 hours.
Thanks!
Bryan