Can't use components on mainform from usersession

<< Click to Display Table of Contents >>

Navigation:  Forum >

Can't use components on mainform from usersession

Forum link

 

 

 


 

04-22-2025, 11:32 AM:

 

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