Delphi android FindComponent as Form

375 Views Asked by At

I am making first android application and having problem with opening form. I only have name of form written in firebird table, and need to find form (FindComponent) to open it. On VCL this works, but when I start app on tablet then nothing happens, form isn't find.

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

There are 1 best solutions below

2
MatijaB On

Solved... Form name must be Table1FormName.value+_LgXhdpiPh or Table1FormName.value+_LgXhdpiTb