试试这样行不行,我没办法测试:
for i:=0 to ValueListEditor.ControlCount-1 do
  if (ValueListEditor.Controls[i] is TWinControl) then
    (ValueListEditor.Controls[i] as TWinControl).IMEName := '';

解决方案 »

  1.   

    不行,
    ValueListEditor.Controls[i] as TWinControl).IMEName :='';
    编译出错:Undeclared identifier:'IMEName'
    怎么办啊?
      

  2.   

    for i:=0 to ValueListEditor.ControlCount-1 do
      if (ValueListEditor.Controls[i] is TWinControl) then
        (ValueListEditor.Controls[i] as TEdit).IMEName := '';
      

  3.   

    该方法在BCB6下测试通过。
    但是要注意:有一定危险性。不要滥用该方法。
      

  4.   

    在FormCreate中执行后没有用,
    在btnClick事件中执行出错:invalid class typecast!
      

  5.   

    这样看来 as TEdit 应该是对的。可是在D6中好象不行。
      

  6.   

    我忘了说:在ValueListEditor中的row 是动态增加的
    当我增加完后发现ControlCount属性是0?为何?
    可能问题就在这里了