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