Hi,
I want to do a simple conversion from a string format to a number format so I can do some caculations. I am using Crystal 8.5. Ok here is the problem.
I have two fields that are of type string; however, they have number variables that I need to do a caculation on that are within the string.
Here is the code I tried to use.
tonumber({security_profile.salary_code}[15]+{security_profile.salary_code}[16])
When I run the report, I get an error that says "the string is non-numeric." I would have thought since I used the tonumber conversion that it would have converted the value to a number. Am I missing a step?
I want to do a simple conversion from a string format to a number format so I can do some caculations. I am using Crystal 8.5. Ok here is the problem.
I have two fields that are of type string; however, they have number variables that I need to do a caculation on that are within the string.
Here is the code I tried to use.
tonumber({security_profile.salary_code}[15]+{security_profile.salary_code}[16])
When I run the report, I get an error that says "the string is non-numeric." I would have thought since I used the tonumber conversion that it would have converted the value to a number. Am I missing a step?