Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WebApplication.FormCount
#1
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ž
Reply
#2
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".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)