stillsteam
Programmer
Hello
Crystal 9 and SQL Server
I need to pull out up to 3 parts from this field.
There could be lots of info in the field that I don´t need for this
I need length,width and height.
Here are some examples
47x47x1285mm KD-märkning = Length 47, Widht 47, Height 1285
A4 80 g laxfärgat = Length 0, Widht 0, Height 0
600x50mm = Length 600, Wwidht 50, Height 0
back:600x400x300mm ark:495x495mm tryck 1 färg röd. =Length 600, Widht 400, Height 300
570x380x380/250/180mm med handtagshål = Length 570, Widht 380, Height 380
I want them in 3 separate formulas.
If there is a "x" in the string then the numberpart before the first x is Length and after the first x is the Widht and if there is a second x then the number part after the second x is the Height.
There could be an x anywhere in the string that has nothing to do with the numberparts that I want to pull out...
I could settle with a different solution.
If the field starts with numberxnumberxnumber then produce the 3 different formulas.
Is this possible?
Please ask if you need more information
Thank you in advance
/Jonas
Crystal 9 and SQL Server
I need to pull out up to 3 parts from this field.
There could be lots of info in the field that I don´t need for this
I need length,width and height.
Here are some examples
47x47x1285mm KD-märkning = Length 47, Widht 47, Height 1285
A4 80 g laxfärgat = Length 0, Widht 0, Height 0
600x50mm = Length 600, Wwidht 50, Height 0
back:600x400x300mm ark:495x495mm tryck 1 färg röd. =Length 600, Widht 400, Height 300
570x380x380/250/180mm med handtagshål = Length 570, Widht 380, Height 380
I want them in 3 separate formulas.
If there is a "x" in the string then the numberpart before the first x is Length and after the first x is the Widht and if there is a second x then the number part after the second x is the Height.
There could be an x anywhere in the string that has nothing to do with the numberparts that I want to pull out...
I could settle with a different solution.
If the field starts with numberxnumberxnumber then produce the 3 different formulas.
Is this possible?
Please ask if you need more information
Thank you in advance
/Jonas