ok, this didn't work. After I posted this, I realized I was not completely clear on what I needed. I need this String 3.03.03.00.00.00.00 converted to this 3.3.3. Here is the code I created in a new formula from what was suggested:
local numbervar zero;
local stringvar orig={Observations.Standard};
zero := instr(orig, ".0");
if zero then
orig = left(orig, zero) + mid(orig, zero + 2);
If I do a check on this code, I get A boolean is required here and the zero is highlighted in the if zero then statement. I changed the numbervar to a stringvar and I get A string is required here and instr(orig, ".0") is highlighted.
Anyone else like to take a whack at it?
Edited by mpaddock - 29 Jan 2009 at 9:12am