Have a form:
type
frmMain = class(System.Windows.Forms.Form)
Need to pass it to a procedure:
procedure ReadSettings(var frmMain: frmMain);
But when I start to compile this code:
ReadSettings(frmMain);
I receive this message:
[Pascal Error] MainForm.pas(148): E2033 Types of actual and formal var parameters must be identical
Please help me to solve this problem.
type
frmMain = class(System.Windows.Forms.Form)
Need to pass it to a procedure:
procedure ReadSettings(var frmMain: frmMain);
But when I start to compile this code:
ReadSettings(frmMain);
I receive this message:
[Pascal Error] MainForm.pas(148): E2033 Types of actual and formal var parameters must be identical
Please help me to solve this problem.