Hi need help converting a stringvar into a random symbol when it replicates the previous stringvar. I can get a single variable to convert (1st else if) but i cannot nest the correct formula for a multi variable (else statement). Thanks for the help, Max.
//'Restart Formula' place in a suppressed GROUP header
whileprintingrecords;
stringvar sv_element := ''
//"Display Formula" place in GROUP footer
whileprintingrecords;
stringvar sv_element;
//"Build Formula" place in a suppressed DETAIL
whileprintingrecords;
stringvar sv_element;
if onfirstrecord then
sv_element := trim({rpAnalyteList_C.Symbol})
else if trim({rpAnalyteList_C.Symbol}) = previous({rpAnalyteList_C.Symbol}) then
sv_element := " ^^ "
else sv_element := trim(sv_element) & " " & trim({rpAnalyteList_C.Symbol})
Current Formula provides this Table | This is the Table I need |
---|---|
Ag Al As Ba U | Ag Al As Ba U |
U | U |
^^ | ^^ |
^^ | ^^ |
Ag Al As Ba U | Ag Al As Ba U |
Ag Al As Ba U | ^^ |
Ag Al As Ba U | ^^ |