Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lossing decimals while appending
Message
From
29/10/2002 07:44:55
 
 
To
29/10/2002 04:07:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00716329
Message ID:
00716385
Views:
18
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform