Using the following formula in Crystal 8.5 causes the program to crash. Does anybody have a solution?
ToNumber(
(if Left({Table1.Field1},1) in ["H"] then {Table1.Field1} [2 to 5] else
if Left({Table1.Field1},1) in ["U","F"] then {Table1.Field1} [2 to 4] else
ToText(
if (Val ( strreverse ({Table1.Field1})) ) < 0 then
int(Val ({Table1.Field1})) *-1 else
(Val({Table1.Field1}))))
)
Thanks
ToNumber(
(if Left({Table1.Field1},1) in ["H"] then {Table1.Field1} [2 to 5] else
if Left({Table1.Field1},1) in ["U","F"] then {Table1.Field1} [2 to 4] else
ToText(
if (Val ( strreverse ({Table1.Field1})) ) < 0 then
int(Val ({Table1.Field1})) *-1 else
(Val({Table1.Field1}))))
)
Thanks