Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to convert from a character to an int?
Message
 
 
À
06/03/2003 08:46:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00762098
Message ID:
00762606
Vues:
12
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform