Atozed Forums
Can't use components on mainform from usersession - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Can't use components on mainform from usersession (/thread-5169.html)



Can't use components on mainform from usersession - freshslo - 04-22-2025

Hello,

Why I can't use components which are on IWMainform from usersession unit?

I have IWMainform which is mainfrm.pas and mainfrm.dfm. Then I place IWLabel on IWMainform.

Then I open Usersession unit and I create procedure:

uses mainfrm;

Procedure IWUsersession.BLA;
begin
  IWMainform.IWLabel1.caption:='blabla';   <<< Here i got error Undeclared identifier 'IWMainform' ??
end;

I use latest version 16.0.9