Forum > General

[Solved] Form names

(1/1)

cpalx:
Is there any way to get all the form names of a project??

garlar27:
at runtime??

typo:

--- Code: ---var
  i :integer;
begin
  for i := 0 to Application.ComponentCount - 1 do
  begin
    if Application.Components[i] is TForm then
      ShowMessage(TForm(Application.Components[i]).Name);
  end;
end;
--- End code ---

cpalx:
thanks, works great

Navigation

[0] Message Index

Go to full version