很奇怪啊,VAR定义变量有什么错。
是不是哪里少了什么东西?
而且现在 双击BTN也不可以添加Cilck 事件了,出现could not find source location to add method btn_addmemeolinesclick "end"or initialization not found in unit source 什么意思啊??
求救~~~~~~~~谢谢,放分~~~~~!
是不是哪里少了什么东西?
而且现在 双击BTN也不可以添加Cilck 事件了,出现could not find source location to add method btn_addmemeolinesclick "end"or initialization not found in unit source 什么意思啊??
求救~~~~~~~~谢谢,放分~~~~~!
procedure TFrmLesson002.Btn_ShowListBoxItemClick(Sender: TObject);
begin
var TmpStr:String;
begin
TmpStr:='TListBox目前行数计'+InttoStr(Lbx_1.Items.Count)+'行'+#13#10+'内容如下'+#13#10+Lbx_1.Items.text;
showmessage(TmpStr);
end;这里有错吗??
procedure TFrmLesson002.Btn_ShowListBoxItemClick(Sender: TObject);
begin---看到没有?把这个begin去掉!!!
var TmpStr:String;
begin
TmpStr:='TListBox目前行数计'+InttoStr(Lbx_1.Items.Count)+'行'+#13#10+'内容如下'+#13#10+Lbx_1.Items.text;
showmessage(TmpStr);
end;