android - 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
解决方案
已解决... 表单名称必须为 Table1FormName.value+_LgXhdpiPh 或 Table1FormName.value+_LgXhdpiTb
推荐阅读
- javascript - 何使用 typescript 函数作为 JavaScript 库的回调
- shell - 在Shell脚本中使用双双引号在字符串之间提取数据
- tensorflow - 如何获取 tensorflow.data.Dataset 的行数、列数/维度?
- coldfusion - Lucee 中的图表
- android - 两天后 Google Play 应用总安装量仍为 0+
- javascript - Heroku 没有为 react package.json 获取端口
- python - 在几个选项中,如何在 TensorFlow 中随机执行其中一个?
- ansible - 如何根据匹配字符串定义何时条件
- python - 在类列表中输入分隔值
- c - C:即使输入文件作为参数给出,程序也会要求用户输入