FR3.16 - Error using report variables.

edited 3:12AM in FastReport 3.0
In FR3.11 I was able to use in a memotext:

Requested By: <B>[UserName]</B>

Where [UserName] is a report variable.

Now, after upgarding to 3.16, I get an error:

...Error in expression "MIKEH": ';' expected

Thanks,
Mike

Comments

  • edited 3:12AM
    Solved.

    Somewhere between 3.11 and 3.16 one must now use double qoutes " " around the value when setting a variable (if using C++ script in the report).

    E.g. Used to use in C++ Builder:
    frxReport1->Variables->Variables["UserName"] = QuotedStr(sValue);

    Now must use:
    frxReport1->Variables->Variables["UserName"] = AnsiQuotedStr(sValue, '"');
  • edited 3:12AM
    Unicode.

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.