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 2:33AM
    Try [IIF(<ds."a"> = null, <ds."b">, <ds."c">)]
    TfrxReport.EngineOptions.ConvertNulls should be False

Leave a Comment