首页 > Windows开发 > 详细

Delphi 通过名称调用控件

时间:2020-10-30 10:16:46      阅读:79      评论:0      收藏:0      [点我收藏+]

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  更新时间:

Delphi 通过名称调用控件

原文:https://www.cnblogs.com/guorongtao/p/13900495.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!