expressions

edited November 2008 in FastReport 4.0
In a text field I have:

[[<ec."ExpctlYrPaid">] ? "Yes" : "No"]

The column ec.ExpctlYrPaid is a boolean (true/false). When the column is "true" then the value to be printed is "Yes" --- otherwise "No". Why do I get this error?

The following error(s) have occured:
Memo2: Error in expression '[<ec.."ExpctlYrPaid">] ? "Yes" : "No":';' expected


Can someone explain what I am doing wrong? Why is it expecting a ";"?

Comments

  • gpigpi
    edited 5:08AM
    Try to use
    [IIF(<ec."ExpctlYrPaid">, 'Yes', 'No')]
    or use
    TfrxMemoView.DisplayFormat.Kind=fkBoolean
    TfrxMemoView.DisplayFormat.FormatStr='No,Yes'

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.