Array element as an argument of IIF in Memo
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.
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
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?