Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Existence of a field
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00761708
Message ID:
00761818
Views:
23
This message has been marked as the solution to the initial question of the thread.
>Hi Fred,
>
>I have another question again.
>
>Is it possible to caculate the value of the very right numbers of a character string with one function like?
>
>I mean like
>anmmjj123 which yield 123
>mmn23 which yield 23
>ooo89 which yield 89
>
>Thank you,
>Ali

If all the other characters are non-digits, you could do:

? VAL(CHRTRAN("test123",CHRTRAN("test123","1234567890",""),""))
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform