首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

依据类名字符串创建实例

2012-06-20 
根据类名字符串创建实例//先在声明TADeptForm 类的单元注册,或者选择在公共接口单元注册!initializationR

根据类名字符串创建实例

//先在声明TADeptForm 类的单元注册,或者选择在公共接口单元注册!

initialization;   

RegisterClasses([TADeptForm]);


实现代码:

  with TFormClass(FindClass('TADeptForm')).Create(Application) do
  begin
  show;
  end;

热点排行