Is possible to use variables in a Dynamic Array in combination with a case statement?
The situation is as follows;
I'm using a temporary table in a sub report that has two columns, the amount of record varies but is never larger than 50. Also the values in both columns vary but in one column the values are always unique (Column.A).
Each time the report is generated all records need to be stored in shared variables.
So the amount of cases and variables (var_nn) should be the same as the total record count.
The formula I'm using now is a static one that looks like this, but when the values of Column.A change then variables are missing.
whileprintingrecords;
select {Column.A}
case "CF_CUSTGRP" : shared stringvar var_01 := {Column.B}
case "CF_CUSTID" : shared stringvar var_02 := {Column.B}
case "CF_EXCHRATE" : shared stringvar var_03 := {Column.B}
Hopefully somebody can help me.
Erik
The situation is as follows;
I'm using a temporary table in a sub report that has two columns, the amount of record varies but is never larger than 50. Also the values in both columns vary but in one column the values are always unique (Column.A).
Each time the report is generated all records need to be stored in shared variables.
So the amount of cases and variables (var_nn) should be the same as the total record count.
The formula I'm using now is a static one that looks like this, but when the values of Column.A change then variables are missing.
whileprintingrecords;
select {Column.A}
case "CF_CUSTGRP" : shared stringvar var_01 := {Column.B}
case "CF_CUSTID" : shared stringvar var_02 := {Column.B}
case "CF_EXCHRATE" : shared stringvar var_03 := {Column.B}
Hopefully somebody can help me.
Erik