for i:=0 to treeview1.Items.Count do begin if treeview1.Items[i].Text ='咸阳市' then showmessage('1111'); end; 这里提示说--------------------------- Debugger Exception Notification --------------------------- Project Project1.exe raised exception class ETreeViewError with message 'Invalid index'. Process stopped. Use Step or Run to continue. --------------------------- OK Help --------------------------- 不知道treeview这个的index怎么用?谢谢
----------------------------------------------
2222