使用几个RadioButton,每个RadioButton都有不同的操作,我想使用case of 方式,如下:
case xxx of
RadioButton1:
begin
end;
RadioButton:
begin
end;
end;请问这样写是否正确,xxx处又如何写,谢谢
case xxx of
RadioButton1:
begin
end;
RadioButton:
begin
end;
end;请问这样写是否正确,xxx处又如何写,谢谢
解决方案 »
- cxgrid中,如何根据列名或字段名取得footer值
- *************关于DBGRIDEH的问题????????????
- 誰有编译通过的SQLDMO_TLB.PAS 文件可以給我一份吗?
- 数据集刷新问题,急!!
- 关于MDI父子窗体之间的控制问题
- 数据库菜鸟的小问题,高分相送!!
- 在form的.pas引用application.xxx没问题,但怎样在没有form的.pas中引用application?
- Ado在Delphi中的查询速度问题
- 三层数据库应用程序中,应用服务器如何在目标机器中注册
- delphi中和servers中的WordApplication控件如何使用请交我
- 如何把一个很大的文本文件导入到oracle数据库中
- 最近哪有delphi7下载呀?
RadioButton1:
begin
end;
RadioButton:
begin
end;
end;
xxx处是数字 RadioButton1处也是数字
RadioButton1:
begin
end;
RadioButton:
begin
end;
end;
按 myanwei()说的,为每个RADIOBUTTON分配唯一的TAG就可以了,然后CASE (Sender as TRadioButton).Tag