PRB: Inconsistent Numeric Entry in BROWSE Field

Last reviewed: April 18, 1995
Article ID: Q108167
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, 2.5a, and 2.5b

SYMPTOMS

Exiting from a numeric field in a Browse window by pressing the UP ARROW or DOWN ARROW key will result in different output than if you exit the same field by pressing the ENTER key. This problem does not occur in FoxPro for Windows.

RESOLUTION

To work around this problem, use the '@K' picture clause to force a select on entry. For example:

   BROWSE fields <fieldname> :P='@K'

The above command causes the field to be selected upon entry.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a 5-digit field, and fill all five positions with 1; for example, 11111.

  2. With INS key mode set off, move into that field, type a 2, and press the DOWN ARROW or UP ARROW key.

    The first digit will be replaced with a 2 and the rest of the digits will remain the same; that is, the field will now contain 21111.

  3. Repeat step 2, but press ENTER instead of the DOWN ARROW or UP ARROW key.

The field now contains 2.


Additional reference words: FoxDos 2.00 2.50 2.50a 2.50b
KBCategory: kbprg kbprb
KBSubcategory:


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 18, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.