John Baird
Coatesville, Pennsylvania, United States
General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only