Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG in VAL() function
Message
 
 
To
12/12/2003 12:55:49
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00858634
Message ID:
00858676
Views:
20
Fabio,

>>There was a thread about this a few days ago. You need to alltrim() the value before sending it to val().

The stated problem discussed trailing spaces.

>Not therefore simple
>
>? VAL('$95.00.....................')
>? VAL('$95.00ABCDEFGHILMNOHJYUIKDD')
>
What you post above is a different currency related issue.

This works as expected:
set decimals to 5
? VAL('95.00.....................')
? VAL('95.00ABCDEFGHILMNOHJYUIKDD')
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform