PRB: Inconsistent Numeric Entry in BROWSE Field

ID: Q108167

The information in this article applies to:

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:

Last Reviewed: April 18, 1995