TfrxMemoView.Memo property editor and CRLF #13#10 code

How can I do some think like this code
[IIF(<frxDBDatasetMaestro."TEXT1"> <> '', <frxDBDatasetMaestro."TEXT1"> [b]+ #13#10 +[/b] <frxDBDatasetMaestro."TEXT2">, <frxDBDatasetMaestro."TEXT2">)]

with the report designer into the TfrxMemoView.Memo box (not in the code editor, but using the box that appear editing the MEMO object property)

I want to add a CRLF when then IIF condition is TRUE. This sample code don't work.

Is some way to create a new line into this editor? Some special code or function?

Comments

  • edited April 2013
    How can I do some think like this code
    [IIF(<frxDBDatasetMaestro."TEXT1"> <> '', <frxDBDatasetMaestro."TEXT1"> [b]+ #13#10 +[/b] <frxDBDatasetMaestro."TEXT2">, <frxDBDatasetMaestro."TEXT2">)]
    

    with the report designer into the TfrxMemoView.Memo box (not in the code editor, but using the box that appear editing the MEMO object property)

    I want to add a CRLF when then IIF condition is TRUE. This sample code don't work.

    Is some way to create a new line into this editor? Some special code or function?
    I had so many problems with the IIF() function that I now hardly ever use it and if it doesn't work and there is no obvious mistake, I switch to coding in the code page, OnBeforeBand event.

    The IIF() function seems to be extremely sensitive to something or other and even building the expression in the edit box, by selecting the functions and parameters from the lists, often fails to produce an expression that works. I have stopped wasting my time on it.
  • edited 4:19PM
    Try this:

    [IIF(<frxDBDatasetMaestro."TEXT1"> <> '', <frxDBDatasetMaestro."TEXT1"> + chr(13) + <frxDBDatasetMaestro."TEXT2">, <frxDBDatasetMaestro."TEXT2">)]

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.