Joined: 30 Oct 2012
Online Status: Offline
Posts: 104
Topic: Text to Numeric Conversion Posted: 02 Jun 2014 at 5:16am
I have a text field that I am pulling from a database that represents a size value. I would like to convert that value from text to numeric in CR so that it will be compatible with another program where the data needs to be in short integer format.
The problem: ToNumber doesn't work because it has special characters throughout.
Data returned looks like this:
MeterSize
3/4"
5/8"
1/2"
2"
I tried using Replace (metersize, ""","") to remove the inch symbols, but I think crystal is having an issue with the symbol.
Any tips on taking out the inch symbols (")?
Any tips on getting CR to recognize the division symbol (/)?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum