Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to convert from a character to an int?
Message
From
23/04/2004 12:43:10
John Baird
Coatesville, Pennsylvania, United States
 
 
To
23/04/2004 12:35:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00762098
Message ID:
00897667
Views:
19
lcNum = "12,234.95"
lnNum = VAL(STRTRAN(lcNum, ',',''))



>>val("12,234.95")= 12.00
>>
>>the val() function does not like non-numerical charactures. Anything after a comma in a number will give you bad results.
>
>How can I convert a character string with commas into numbers without writing elaborated code?
>
>Thanks...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform