I'm using Crystal9 with Oracle Server. I'm having trouble extracting substrings from a string that is a result of a variable formula. I have two numbers that are being used and converted to text, the timekey (x) and the number recorded with that key .
I'm using this approach because I need to allow for identical n values (n1 could equal n2).
Here is the accum formula:
WhilePrintingRecords;
StringVar keynumber;
If Instr (keynumber,totext({RECORD.KEY})) = 0 then
keynumber := keynumber + totext({RECORD.KEY}) + "|" + totext({RECORD.NUMBER}) + ", ";
Example result:
x1|n1, x2|n2, x3|n3
What I need to show is just the n values separated by ", " like this:
n1, n2, n3
How do I remove x1| and x2|, etc and still keep n1, n2 etc?
Any ideas?
I'm using this approach because I need to allow for identical n values (n1 could equal n2).
Here is the accum formula:
WhilePrintingRecords;
StringVar keynumber;
If Instr (keynumber,totext({RECORD.KEY})) = 0 then
keynumber := keynumber + totext({RECORD.KEY}) + "|" + totext({RECORD.NUMBER}) + ", ";
Example result:
x1|n1, x2|n2, x3|n3
What I need to show is just the n values separated by ", " like this:
n1, n2, n3
How do I remove x1| and x2|, etc and still keep n1, n2 etc?
Any ideas?