Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG in VAL() function
Message
 
 
À
12/12/2003 12:55:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00858634
Message ID:
00858676
Vues:
21
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform