about IIF function

edited December 2017 in FastReport VCL 5
hi

I want to write a expression in a variable that if ds.a(ds is frxdataset,a is field) is null then assign ds.b to it ,if it is not null then assign ds.c to it ,how should i to do ?

Comments

  • gpigpi
    edited 8:41PM
    Try [IIF(<ds."a"> = null, <ds."b">, <ds."c">)]
    TfrxReport.EngineOptions.ConvertNulls should be False

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.