Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question about $ and VAL()
Message
 
 
À
25/12/2016 11:57:09
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01646061
Message ID:
01646064
Vues:
70
Thank you... easy enough.

>>Anyone know the best way to get:
>>
>>? VAL("3,000.99")
>>
>>which returns a numeric 3.00
>>
>>to return a numeric 3000.99 (or even 3,000.99) ?
>>
>>I am needing to replace thousands of character numbers found in a character type field to numeric fields.
>>
>>Thanks in advance...
>
>You will need to strip out all characters except numbers and the period and then use this:
>cast("4000.999" as n(13,4))
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform