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

Comments

  • edited 3:33PM
    I forgot to say that I'm using C++Builder 6.
  • edited 3:33PM
    Please read the programmer manual, "Modifying the variable???s value" section.
  • edited 3:33PM
    Hello Vasile

    Report->Variables->Variables["MYVAR"] = "'Hello world !'"; // Use ticks with strings

    Report->Variables->Variables["MYVAR"] = 1234;

    Hope this helps, Asko
  • edited 3:33PM
    In the meantime I found that this works as well:


    Report->Variables->Variables["MYVAR"] = QuotedStr("Hello World !");

    Thanks,
    Vasile

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.