Help with creating new Varibles
Hi, Everybody,
Just recently purchased FastReport for Delphi (v4.7.22) and have printed out and read the User Manual. There is a lot of learn, so thought I would start slowly and just get a caption from my main form to display on a page header.
So, from Report|Variables I created a new category and a new variable; set the expression to "Mainform.LCustName.Caption".
Unfortunately this causes an "Undeclared Identifier" error.
Is this a scoping problem (the reporting code cannot 'see' the Mainform object)? or have I misunderstood how to create and assign variables?
Thanks for any advice,
Regards,
PhilW.
Just recently purchased FastReport for Delphi (v4.7.22) and have printed out and read the User Manual. There is a lot of learn, so thought I would start slowly and just get a caption from my main form to display on a page header.
So, from Report|Variables I created a new category and a new variable; set the expression to "Mainform.LCustName.Caption".
Unfortunately this causes an "Undeclared Identifier" error.
Is this a scoping problem (the reporting code cannot 'see' the Mainform object)? or have I misunderstood how to create and assign variables?
Thanks for any advice,
Regards,
PhilW.
Comments
For passing values to categorized report variables from delphi read the programmer's manual chapter on variables