FastReport variables
Hello,
I have created a FastReport variable (Report->Variables...), let's name it MYVAR.
On the report I have added a memo and I linked it to that variable :
[MYVAR]
When I try to proview the report I get this error :
The following error(s) have occured:
Memo16: Error in expression '': Expression expected.
I'm getting this error at design time and runtime as well, although at runtime this variable gets initialised:
Report->Variables->operator []("MYVAR") = "Hello world !";
Is this a bug or there is a workaround for it?
Many thanks,
Vasile
I have created a FastReport variable (Report->Variables...), let's name it MYVAR.
On the report I have added a memo and I linked it to that variable :
[MYVAR]
When I try to proview the report I get this error :
The following error(s) have occured:
Memo16: Error in expression '': Expression expected.
I'm getting this error at design time and runtime as well, although at runtime this variable gets initialised:
Report->Variables->operator []("MYVAR") = "Hello world !";
Is this a bug or there is a workaround for it?
Many thanks,
Vasile
Comments
Report->Variables->Variables["MYVAR"] = "'Hello world !'"; // Use ticks with strings
Report->Variables->Variables["MYVAR"] = 1234;
Hope this helps, Asko
Report->Variables->Variables["MYVAR"] = QuotedStr("Hello World !");
Thanks,
Vasile