How to trim / truncate numeric data from an alfanumeric field ?

Hello, this one is killing me ! Pleae help....
I'm new on Crystal Reports and use the dutch version, don't know the english names. Sorry :-(

I have this table with alfanumeric fields. It contains data like
Amerika 995

I only need the numeric part (100, 995, 678,95)
 Any idea how to achieve this ?

Mario Hoedemakers
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Is the number you want to get ALWAYS at the end of the string?
ictdokAuthor Commented:
Yes, but the lenght is not always the same ;-(
Mike McCrackenSenior ConsultantCommented:
Try this formula

Local StringVar HasNumber := {YourStringField};
Local numbervar Index := 1;

while Index <= Len(HasNumber) AND Not NumericText(HasNumber[Index]) do
   Index := Index + 1;

if Index <= Len(HasNumber) then
   "no number"

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ictdokAuthor Commented:
wow, perfect. That works fine !
So it was not as simple as i hoped it would be ... at least for me :-)

Thanks again !
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.