Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rounding problem with VFP calculator
Message
From
10/11/2005 10:54:23
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
 
 
To
10/11/2005 10:44:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01067165
Message ID:
01067182
Views:
14
But my application runs with SET RESOURCE OFF...

>After typing a series of decimals into the calculator on your machine, and it is working, close fox and copy your foxuser table over to the users machine.
>
>Mace
>
>>The problem is that I'm trying to do this programmatically. I have a textbox in my application and when the user double-clicks on the textbox, it brings up the calculator with the value pre-filled. Any ideas?
>>
>>>This is a known bug.
>>>
>>>You have to type .0 into the calculator manually. This seems to initialize the calculator for decimals in foxuser.dbf. After that it will work according to your SET DECIMALS.
>>>
>>>>Why is the calculator rounding and how can I get it to display the correct value? When I do this:
>>>>
>>>>_calcvalue=1234.56
>>>>ACTIVATE WINDOW calculator
>>>>
>>>>I see 1235 on the calculator.
>>>>
>>>>Thanks,
>>>>Elyse
Elyse Pomerantz
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform