Syntax for Choose

edited 5:40PM in FastReport 4.0
Hello,

I'am using FastReport 4.12 for Embarcadero RAD Studion Enterprise. So far it works fine. But now I try to get the following expression to work:
[Choose(<ADTable1."BesGruppe">,'A9 / EG9','A10 / EG10','A11 / EG11','A12 / EG12','A13 / EG13','A14 / EG14','A15 / EG15','A16 / EG16')]
The error that occurs is: Undeclared identifier: 'Choose'

Is it not possible to use the Choose-statement in expressions of this FastReport-version? A single IIF-Statement like [IIF(<ADTable1."BesGruppe">=0,'A9 / EG9','')] works, but how do I cascade several IIF-Statements?

Thanks for any help.

Bernard

Comments

  • gpigpi
    edited 5:40PM
    Try
    [IIF(<ADTable1."BesGruppe">=0,'A9 / EG9',IIF(<ADTable1."BesGruppe">=1,'A10 / EG10',''))]

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.