Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Val from string with commas
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01326898
Message ID:
01326917
Views:
18
This message has been marked as a message which has helped to the initial question of the thread.
>Using vfp 8
>
>lcStringValue=[1,234]
>? VAL(lcStringValue)
>
>returns 1.00
>
>How can I get the real value of 1234?
>
>Thanks

Just remove all extra characters from the string, e.g.
lcBadChars = '.,&'

?val(chrtran(lcStringValue, m.lcBadChars, ''))
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform