# STRING TO NUMBER IN CRISTAL REPORTS

HI HOW ARE YOU hOW CAN I TURN A STRING TO NUMBER,
TO MAKE ME A ORDER LIKE
1
2
3
4
11
1A
1B

IS ANY FORMULA

THANK YOU
EDO

###### Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x

Commented:
You created the formula, right?  Go to the Report menu, and click on the Record Sort Expert.
Add the formula as the first field to sort on, and then add the original field after that.
Leave the original field on your report for displaying the value.
Does that help?
0

Commented:
What should 1A and 1B be, just 1?

This would be a formula, using the val function at the very minimum:

val({table.field})

If this doesn't meet your needs, then provide further sample data with expected output.
0

Commented:
this should work..
if isnumeric(field) = True then cdbl(field) else 0
0

Commented:
mine wont work for you.. sorry.. didnt see the 1A and 1B..
0

Author Commented:
THE ACTUAL ORDER IS
1
10
101
102
102A
2
2A
3

THE DESIRED ORDEN IS
1
2
2A
3
10
101
102
102A

THANK YOU A L O T

0

Commented:
Use my formula to sort first, then sort by the original field,
0

Author Commented:
WITH YOUR FORMULA THE LETTERS ARE GONE
0

Commented:
Don't display my formula, just use it for sorting.
Sorting won't work properly with just your field, that is why you need the formula
0

Author Commented:
i don't catch you
0

Author Commented:
let me check it out
0

Author Commented:
IS CRYSTAL 8
THANK YOU A LOT
0

Commented:
Should be, but perhaps it was under something else.
The Record Sort Expert or Sort Expert should be there somehwere.
0

Author Commented:
thank you a lot
it works fine
0

Commented:
Is the order of the result as you desire.  I believe it will not be what you requested.

1
1A
1B
2
3
4
11

mlmcc
0

Author Commented:
yes it works
0