我需要集体清除EDIT筐里的数据
如:
edit2.clear
edit1.clear
edit3.clear
用什么方法效率更高呢!??
一定给分的!!
如:
edit2.clear
edit1.clear
edit3.clear
用什么方法效率更高呢!??
一定给分的!!
解决方案 »
- 我在dbgrid某列中插入入了一列button控件,想实现点击出现该行记录的详细信息,但onclick事件中如何取得点击buton所在的记录
- 用TWordApplication等组建,如何往word文档的页脚插入页码?
- 如何改变一个Application的MainForm?
- help!我犯了什么错??????
- 在BDE开发的数据库程序在无Delphi的机子上怎么运行?
- CreateMutex的标志用ReleaseMutex释放不掉呢?
- 属性、参数(Com问题)
- 怎样使一个窗口弹出后,不关闭,同进程的别的窗口不能获得焦点
- 安装问题!
- 能说说VCL控件中TAG属性有什么作用?
- 打印的问题,为什么我用delphi的qrmemo打印memo的内容时,有些行对不齐??
- 在同一个框架中显示HTML的图标文件,点击后如何参数化调用程序?〈仿吉胜人事工资管理〉?急
var i:integer;
begin
for i:=0 to frm.ComponentCount-1 do
begin
if frm.Components[i] is tedit then
tedit(self.Components[i]).Clear;
end;end;
for i:=0 to component.count-1 do
begin
if components[i] is TEdit then
TEdit(components[i]).clear;
end;
begin
for i:= 0 to self.ComponentCount - 1 do
if (self.Components[i] is TEdit) and ((self.Components[i] as TEdit).Parent = p) then
(self.Components[i] as TEdit).clear;
呵呵
,混分
end
var
i: Integer;
begin
for i:=0 to frm.ComponentCount - 1 do
begin
if frm.Components[i] is TEdit then
TEdit(self.Components[i]).Text := '';
end;
end;
begin
if components[i] is TEdit then
TEdit(components[i]).clear;
end;
begin
for i:=0 to self.componentcount-1 do
begin
if self.components[i] is TEdit then
tedit(self.components[i]).text:='';
end;
更简洁些:
for i:=0 to component.count-1 do if components[i] is TEdit then
TEdit(components[i]).clear;
begin
if components[i] is TEdit then
TEdit(components[i]).clear;
end;
begin
if components[i] is TEdit then
TEdit(components[i]).clear;
end;
接分