首页 > 解决方案 > Delphi android FindComponent作为表单

问题描述

我正在制作第一个 android 应用程序并且在打开表单时遇到问题。我只有写在firebird表中的表单名称,需要找到表单(FindComponent)才能打开它。在 VCL 上这是可行的,但是当我在平板电脑上启动应用程序时,什么也没有发生,找不到表单。

var
Form: TForm;
begin
Form := Application.FindComponent(Table1FormName.Value) as TForm;
    if Assigned(Form) then
      Form.ShowModal;
end

标签: androiddelphifindfiremonkeytform

解决方案


已解决... 表单名称必须为 Table1FormName.value+_LgXhdpiPh 或 Table1FormName.value+_LgXhdpiTb


推荐阅读