Atozed Forums

Full Version: WebApplication.FormCount
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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ž
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".