Delphi 通过名称调用控件

Delphi 通过名称调用控件

RTI (Runtime Type Information)

var 
  Edit: TComponent;
begin
  Edit := FindComponent("Edit1");
  If Edit is TEdit then
    TEdit(Edit).Text := '你好 Delphi7';
end;

  

 

创建时间:2020.10.30  更新时间:

posted on 2020-10-30 09:31  滔Roy  阅读(646)  评论(0编辑  收藏  举报

导航