Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to convert from a character to an int?
Message
From
07/03/2003 03:30:22
 
 
To
06/03/2003 08:46:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00762098
Message ID:
00762606
Views:
13
Everyone that suggested that you use the val() is correct. However if you are new to Foxpro use should be aware that:

val("ABC") = 0

val("12,234.95")= 12.00

val("12234.95") = 12234.95

the val() function does not like non-numerical charactures. Anything after a comma in a number will give you bad results.

Bruce
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform