Using '[' and ']' not as variable identifier

Hi,

I'm using report variables in my report. The report variable is used in a memoview, the memoview containes beside the variable name [TempKoeff] the unit description [10e-6 /?°C]. When I'm running the report FastReport creates an error "Error in expression '10e-6 / ?°C': ';' expected".
When I'm running the report without the unit description everything is ok. How can I use '' chars preventing FR from interpreting it as variable identifiers?

Thanks in advance

Peter

Comments

  • edited 9:49PM
    worbis wrote: »
    Hi,

    I'm using report variables in my report. The report variable is used in a memoview, the memoview containes beside the variable name [TempKoeff] the unit description [10e-6 /?°C]. When I'm running the report FastReport creates an error "Error in expression '10e-6 / ?°C': ';' expected".
    When I'm running the report without the unit description everything is ok. How can I use '' chars preventing FR from interpreting it as variable identifiers?

    Thanks in advance

    Peter

    I've just found a solution
    first I've tried to set the the unit string in quotes, but the error still occures ( [TempCoeffVal] ?±[TempCoeffTol] '[1e-6 / ?°C]' )

    then I've put a dummy function around the unit string and the report was ok ( [TempCoeffVal] ?±[TempCoeffTol] [Trim('[1e-6 / ?°C]')] )

    Thanks

    Peter
  • gordkgordk St.Catherines On. Canada.
    edited 9:49PM
    in the oi for the tfrxmemoview set the expression delimiter property to what you want.

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.