Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lossing decimals while appending
Message
De
29/10/2002 07:44:55
 
 
À
29/10/2002 04:07:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00716329
Message ID:
00716385
Vues:
20
>Kenneth,
>
>In my VFP val("-20000.98") keeps the decimals but val("-20000,98") does not because I am using . as the decimal seperator (Tools menu / Options / Regional Tab). You can modify the VAL() statement like this:
>
>VAL( CHRTRAN( chr_fld, ",", "." ) )
>
>This will first replace the , decimal seperator with a . and then do the VAL().
>
>
>>How can I change the "decimal separator" in code? The default must be , but in this case I need it to be .

Look at the SET SYSFORMATS and SET SEPARATOR commands in your on-line help.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform