Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/100810

From BetaArchive Wiki

PRB: Data Entered in Edit Region Is Not Displayed Properly

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


Last Reviewed: June 27, 1995
© 1999 Microsoft Corporation. All rights reserved. Terms of Use.