|
<< Click to Display Table of Contents >> Navigation: Forum > WebApplication.FormCount |
05-01-2018, 12:19 PM:
Hello,
could you please help me on how to iterate over all forms included in the application.
Code:
// for i:=0 to UserSession.WebApplication.FormCount-1 do
for i:=0 to WebApplication.FormCount-1 do
begin
OutputDebugString(PChar(WebApplication.Forms[i].Name));
end;
Code above lists only active or already opened forms. Forms that were not opened are not listed.
Regards,
Tomaž
05-01-2018, 02:28 PM:
Delphi does not keep track of all classes like .NET and other frameworks. If a class exists in definition only (ie no instance), you have to make a list yourself or use RegisterClass for each one so that it can be "found".