Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rounding problem with VFP calculator
Message
From
11/11/2005 04:29:16
 
 
To
10/11/2005 14:06:22
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01067165
Message ID:
01067551
Views:
13
I just ran it in VFP 7. I had to comment 1 line.

Run the following commands from your command box and tell me what happens. You'll need to change the 2nd parameter of NewObject accordingly.

loCalc=NEWOBJECT( "Calculator", "")
loCalc.Show()

Mace

>When I try to open this class I get "Property value is out of bounds." Is it only for VFP9?
>
>>Then don't use the piece of rubbish shipped with vfp....
>>
>>Look in the downloads section. Lots have been written there. Here was one that has been added within the last four weeks...
>>
>>http://www.levelextreme.com/wconnect/wc.dll?LevelExtreme~2,2,27677
>>
>>Mace
>>
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform