MatijaB
MatijaB

Reputation: 11

Delphi android FindComponent as Form

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

Upvotes: 1

Views: 427

Answers (1)

MatijaB
MatijaB

Reputation: 11

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

Upvotes: 0

Related Questions