Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to convert from a character to an int?
Message
De
23/04/2004 12:43:10
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
23/04/2004 12:35:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00762098
Message ID:
00897667
Vues:
18
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...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform