Problems with IIF

edited 10:45PM in FastReport VCL 5
My first raport in FAST REPORT 5, first error with

in Memo i write [IIF(1=0, '1', '2')] work fine in PascalLanguage Script , but if i change in C++ Script ERROR!

')' expected? Where is the problems? Differen syntax? Please give me an example to use IIF corect in C++ SCript language. Thanks!

Comments

  • LurkingKiwiLurkingKiwi Wellington, New Zealand
    edited 10:45PM
    blumache wrote: »
    in Memo i write [IIF(1=0, '1', '2')] work fine in PascalLanguage Script , but if i change in C++ Script ERROR!
    I expect the C version should be
    [IIF(1==0, "1", "2")]
    although it may work with single quotes.
    Why do you need to use C Script?

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.