PRB: Data Entered in Edit Region Is Not Displayed Properly

Last reviewed: June 27, 1995
Article ID: Q100810
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, and 2.5a
  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a

SYMPTOMS

When you are using an edit field on a screen generated by the screen generator, the edit field does not properly display data that is entered in the field. For example, if the edit field is four characters wide and the characters "ABCD" are typed in, after the "D" is typed, "BCD_" will be displayed. The cursor will occupy the fourth place in the field and the first character is shifted off the field to the left.

CAUSE

The edit region is not being refreshed properly.

RESOLUTION

There are three ways to work around this problem:

  • Stretch the the field to make it one character wider than the field in the database.

    -or-

  • Change the field to a GET field.

    -or-

  • In the VALID clause of the edit field, add a SHOW GET command as a PROCEDURE statement.

MORE INFORMATION

Steps to Reproduce Problem

  1. Create a database with two character fields, one with a width of four and the other with a width of five. Place two records in the database.

  2. Create a quick screen with the screen generator. Both fields should appear on the screen.

  3. Change the first field to an EDIT object.

  4. Generate the screen and execute the .SPR file with the DO command.

  5. Type "ABCD" (without the quotation marks) in the first field. Note the shifting of the "A" off the field after you type the string.


Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a text box control
insertion point
KBCategory: kbprg kbprb
KBSubcategory: FxprgGeneral


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: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.