W
www.ynxbs.com
Unregistered / Unconfirmed
GUEST, unregistred user!
m.close; <br> m.CommandText := 'select * from NamingTree order by DispID,parentid,NodeID';<br> m.Open;<br>//都写了10年了,下面的代码,还可以优化吗?<br> ParentList := tstringlist.Create;<br> while not m.Eof do<br> begin<br> ParentList.Add(m.fieldbyname('ParentID').asstring);<br> Next;<br> end;