例如,有两个窗口form1,有两个按扭,btn1,btn2,btn1.onclick;和btn2.onclick 均有以下语句
begin
form2.showmodal;
edn;
form2.onshow()
begin
if (来自btn1) then ;
if (来自btn2) then .....;
end;上面两个判断怎么写?
begin
form2.showmodal;
edn;
form2.onshow()
begin
if (来自btn1) then ;
if (来自btn2) then .....;
end;上面两个判断怎么写?
解决方案 »
- 关于如何取dbgrid字段的问题----
- try...except无效?
- dbcombobox的使用问题
- 用delphi为asp写dll的问题非熟悉都未入
- 不爽,晕死,散!
- 还是有关于delphi 6.0+ado+odbc后插入,删除,异常的问题
- showmessage(IntToStr(pos(resStr,tmpStr)))这句话是什么意思?能详细解释一下吗?
- ●给定两个日期如:20020101,20020202 ,如何获得两个日期间的间隔天数???????
- 用ADO调用Oracle数据库的时候,为什么numeric类型的字段为什么不能正常显示?
- 如何拦截用户给TToolButton的鼠标点击消息WM_LBOTTONDOWN呢?
- 关于 TDBTreeView???
- 拜年了!关于出学.帮兄弟推荐一本书. 请指点
....
if sender=btn2 then
....
begin
...
end
else if TButton(sender).name=btn2.name then
begin
...
end;
if TBitbtn(sender)=f_in_service.BitBtn1 then
begin
edit1.Text:='';
edit2.Text:='';
edit3.Text:='';
edit4.Text:='';
end; 执行没有错误,可是不能完成功能