Microsoft KB Archive/136282

= BUG: Spinner Does Not Increment Value as It Should =

Article ID: 136282

Article Last Modified on 5/7/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition
 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q136282



SYMPTOMS
When you place a spinner with an Increment property less than 1 on a form, the value does not increase.



WORKAROUND
At design time, in the spinner's property sheet, place a Value property that matches the Increment. That is, if the Increment is 0.1, make the Value 0.1.

At run-time, enter a value manually. After that, the display (and value) will be correct.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.



MORE INFORMATION
A spinner control on a form does not increase the value by the increment unless a value is manually entered or the spinner's value is initialized.

Steps to Reproduce Problem
 Create a form.  Add a spinner control, and set these properties:      Increment = 0.1 InputMask = 9.9   In the spinner's InteractiveChange event procedure, add this code: WAIT WINDOW STR(This.Value,3,1)  Run the form. Verify that as you click the spinner's up arrow, the value in the Wait window does not change.</li> Enter 0.1 in the Spinner window, and then click the spinner's up arrow. Verify that the spinner displays correctly.</li></ol>

NOTE: If the spinner has an initial Value property, the spinner displays correctly.

Additional query words: kbvfp300 kbvfp500 kbvfp600

Keywords: kbbug kbnofix KB136282

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.