请问如何按照此方法控制控件属性? 简单!接分!edit1.text:=st+n; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 for i:=0 to componentcount-1 do if (components[i] as TEdit) then if TEdit(components[i]).Name:='Edit1' then begin //add yourcode here end; 楼上没理解我的意思,如果问你回答的那种问题,我还不如白送了呢!我是想控制 名字为 St + N 的文本控件的 Text 属性(值)我本来按照下面的方法可以解决,可惜不行。 TEdit(application.FindComponent(St+N)).Text := 'fdas';请高手现身。 如果不行,你用FindComponent试一试我现在这里没有delphi 终于试验成功了TEdit(Components[FindComponent('Edit1').ComponentIndex] as TEdit).Text := 'ok';谢谢 淘气男孩的启发 绕了个弯子,原来更简单的是 TEdit(FindComponent('Edit1') as TEdit).Text := 'fdsafsd'; DBGRID编辑插入多表关联的数据问题 delphi错误!? 我写了一个ocx,程序里面引用了另一个ocx,发布的时候能不能只注册一个ocx? 第一次遇到这个问题! delphi代碼外包,能者上 散 在CSDN上,我怎么看了我提的问题,一点击问题时就会出现下面的问题: 请问各位高手:客户端和服务器端为什么不能建立连接? 很简单的一个问题,但我不知我忽略了什么? 怎么实现在stringgrid中换行显示,别的控件也行! 一个不知道怎么做,但很简单的统计问题? 哪里有DELPHIE最新版下载? 请笑纳 20 分
if (components[i] as TEdit) then
if TEdit(components[i]).Name:='Edit1' then
begin
//add yourcode here
end;
请高手现身。
我现在这里没有delphi
谢谢 淘气男孩的启发
TEdit(FindComponent('Edit1') as TEdit).Text := 'fdsafsd';