J
j5203
Unregistered / Unconfirmed
GUEST, unregistred user!
我写了如下的程序,运行时点击按钮,出现send=button1的提示框,
但却是form1的caption变为ddd.
还望各位不吝赐教,谢谢.
procedure TForm1.Button1Click(Sender: TObject);
begin
if sender=form1 then
showmessage('sender=form1')
else if sender=button1 then
showmessage('sender=button1');
with sender do
caption:='ddd';
end;
但却是form1的caption变为ddd.
还望各位不吝赐教,谢谢.
procedure TForm1.Button1Click(Sender: TObject);
begin
if sender=form1 then
showmessage('sender=form1')
else if sender=button1 then
showmessage('sender=button1');
with sender do
caption:='ddd';
end;