Microsoft KB Archive/100810: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - """ to """)
 
Line 12: Line 12:
== SYMPTOMS ==
== 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.
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 ==
== CAUSE ==
Line 44: Line 44:
4. Generate the screen and execute the .SPR file with the DO command.
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
5. Type "ABCD" (without the quotation marks) in the first field. Note


<pre>  the shifting of the &quot;A&quot; off the field after you type the string.
<pre>  the shifting of the "A" off the field after you type the string.
</pre>
</pre>
Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a text box control insertion point KBCategory: kbprg kbprb KBSubcategory: FxprgGeneral
Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a text box control insertion point KBCategory: kbprg kbprb KBSubcategory: FxprgGeneral

Latest revision as of 12:55, 19 July 2020

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.