PRB: Increment Decimal Value Works Incorrectly in Spinner (185258)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
This article was previously published under Q185258 SYMPTOMS
The spinner control in Visual FoxPro 3.x and 5.x works incorrectly when the
increment value is a decimal value.
RESOLUTION
Place the following code in the INIT event of the spinner control:
This.value = This.value * 1.00
Multiplying the value by 1 with 2 decimal places is very crucial. Using the
integer 1 without the 2 decimal places causes the value to increase
incorrectly in a spinner control.
STATUS
Microsoft is researching this problem and will post new information here in
the Microsoft Knowledge Base as it becomes available.
Modification Type: | Major | Last Reviewed: | 5/10/2003 |
---|
Keywords: | kbnofix kbprb KB185258 |
---|
|