简单!接分!
edit1.text:=st+n;

解决方案 »

  1.   

    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;
      

  2.   

    楼上没理解我的意思,如果问你回答的那种问题,我还不如白送了呢!我是想控制 名字为 St + N 的文本控件的 Text 属性(值)我本来按照下面的方法可以解决,可惜不行。        TEdit(application.FindComponent(St+N)).Text := 'fdas';
    请高手现身。
      

  3.   

    如果不行,你用FindComponent试一试
    我现在这里没有delphi
      

  4.   

    终于试验成功了TEdit(Components[FindComponent('Edit1').ComponentIndex] as TEdit).Text := 'ok';
    谢谢 淘气男孩的启发
      

  5.   

    绕了个弯子,原来更简单的是
         TEdit(FindComponent('Edit1') as TEdit).Text := 'fdsafsd';