well, what I would try, and sorry, while have lots of vb development and c#, when it comes to CR, I use the CR syntax...kind of a mix between VB6 and pascal;
so split the field into an array of strings...as I am guessing that the data looks like:
your charges are:
jan
12.89
feb
117.44
depending on how the data is, will alter the code a bit.
but to the splitting...
local stringvar array det
vb would be something like:
Dim det as string();
dim mon as string = "Jan,Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov,
Dec"
dim out as string = ""
dim temp as string
both syntax:
det = split({table.field}, chrw(13) + chrw(10))
start the loop...maybe
for x=1 to ubound(det) (
if instr(det[x], ":") then
out = out + det[x]
else
if instr(mon, det[x]) > 0 then
temp = det[x]
else(
temp = temp + formating + det[x] //this is the fully formatted month charge
out = out + temp
)
)// end loop
formula = out
it would be simpler for me in Crystal Syntax, but you should be able to get the gist. CR basically uses VB6 functions, so if you know them, CR is a breeze, if you are .Net, it's a bit more arcane.
Hate to say it, but CR has the most user friendly formula interface around (it beats SSRS and DevExpress hands down)
hope this at least gets you pointed in the right direction...for the loop, look in Help