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

ErnestoAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
bdreed35Connect With a Mentor 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
 
bdreed35Commented:
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
 
wykabryanCommented:
this should work..
if isnumeric(field) = True then cdbl(field) else 0
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
wykabryanCommented:
mine wont work for you.. sorry.. didnt see the 1A and 1B..
0
 
ErnestoAuthor 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
 
bdreed35Commented:
Use my formula to sort first, then sort by the original field,
0
 
ErnestoAuthor Commented:
WITH YOUR FORMULA THE LETTERS ARE GONE
0
 
bdreed35Commented:
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
 
ErnestoAuthor Commented:
i don't catch you
0
 
ErnestoAuthor Commented:
let me check it out
0
 
ErnestoAuthor Commented:
IS CRYSTAL 8
HAS THIS MENU?
THANK YOU A LOT
0
 
bdreed35Commented:
Should be, but perhaps it was under something else.
The Record Sort Expert or Sort Expert should be there somehwere.
0
 
ErnestoAuthor Commented:
thank you a lot
it works fine
0
 
mlmccCommented:
Is the order of the result as you desire.  I believe it will not be what you requested.

Your sample will sort as
1
1A
1B
2
3
4
11

mlmcc
0
 
ErnestoAuthor Commented:
yes it works
0
All Courses

From novice to tech pro — start learning today.