X
xiaoxiami1
Unregistered / Unconfirmed
GUEST, unregistred user!
小弟我做的程序包含一个listview和edit,我在listview的dbclick事件写入edit1.text:=listview1.selected.caption;当我双击listview里的项目时没有错,当我双击listview空白时就出错!大哥们怎么解决啊?(15分)<br />procedure TForm1.ListView1DblClick(Sender: TObject);
begin
edit1.Text:=listview1.Selected.Caption;
end;
点击空白时出错,怎么解决啊?
begin
edit1.Text:=listview1.Selected.Caption;
end;
点击空白时出错,怎么解决啊?