Microsoft KB Archive/192107

= FIX: Numeric Overflow if no Decimal is in InputMask of Text Box =

Article ID: 192107

Article Last Modified on 8/24/1999

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a

-



This article was previously published under Q192107



SYMPTOMS
A wait window with the message "Numeric Overflow" occurs if a text box that is set to a currency field does not have a decimal place in the Input Mask property. If the Input Mask has settings that include a decimal place or if there are no settings at all, the wait window does not appear. To trigger the wait window "Numeric Overflow" message, the data in the text box has to be highlighted and deleted. Moving off of the text box causes the wait window to appear.



CAUSE
A decimal place is missing in the Inputmask property of the text box.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been corrected in Visual FoxPro 6.0.



Steps to Reproduce Behavior

 * 1) Create a form and add a table that has a currency field in it to the data environment of the form.
 * 2) Add a text box to the form and set the ControlSource of the text box to the currency field and add enough nines (9's) to the InputMask property of the text box to hold all of the values in the currency field. Make sure there is no decimal place.
 * 3) Run the form and highlight all data in the text box. Press the Delete key to empty the text box, and press the Tab key to move off of the text box to trigger the message.
 * 4) A numeric value must be typed into the text box so the form can be closed.
 * 5) Modify the form, adding a decimal place to the right of one of the nines (9's) in the Input Mask property of the text box. Run the form and follow step 3 again. Note that the error does not occur.

Additional query words: kbVFp600fix kbVFp500abug kbCtrl kbContainer

Keywords: kbbug kbfix KB192107

-

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

© Microsoft Corporation. All rights reserved.