Array element as an argument of IIF in Memo

edited March 2012 in FastReport 4.0
Hi, I have a problem with the new syntax in memos.

I've created a TfrxArray in the code segment of the designer and assigned Boolean values to its elements.
Now I want to use these elements as a condition in the IIF function in a memo.
Could you please tell me the right syntax for that. What is the right way to specify the index of the element if it is also a script variable?
When we want to display an array element in a memo, we put [Array]. But as a condition it has to be in <> brackets and I've tried different ways to make it work, but FastReport refuses to read the index of an element in that case.

Thank you in advance.

Comments

  • gpigpi
    edited 5:22PM
    See a demo project in attach
  • edited 5:22PM
    gpi wrote: »
    See a demo project in attach

    Thank you for the reply.

    The demo works fine, but you use the VarArrayOf() function to build an array of constant length.
    What would you do if you needed to build a dynamic array like TfrxArray? How would you pass its values into an IIF function?
    How would you specify the index of that array if it is also a script variable?
  • gpigpi
    edited 5:22PM
    Attach your small demo project first

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.