Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transform string into number
Message
From
03/03/2013 12:34:02
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01567326
Message ID:
01567327
Views:
107
This message has been marked as the solution to the initial question of the thread.
>Hi all,
>
>I have a string : "123.456,12" euros and i want a number 123456,12 euros
>but if i use Val( mystring ) i have a bad result...

untested..

n = val(chartran(chartran(x, ".", ""), ",", "."))

but that depends a lot on your set point/set separator values ;-)
Previous
Reply
Map
View

Click here to load this message in the networking platform