PRB: Cursor Jumps Over Empty GET Field in Screen

Last reviewed: June 27, 1995
Article ID: Q98447
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

On an input screen, the cursor jumps over an empty GET field. For example, when you click the GET field with the mouse, the cursor lands on the next field. This behavior is also exhibited if the GET object is a memory variable that is defined to be a null character (such as m.phone = "").

CAUSE

When the database field is empty in a particular record, and the GET clause for that field has a PICTURE clause containing a "T" (for trim leading and trailing blanks), FoxPro will not allow data to be entered in that field.

RESOLUTION

To modify the empty field, remove the "T" from the PICTURE clause.

MORE INFORMATION

Steps to Reproduce Problem

  1. Use the CUSTOMER database in the TUTORIAL subdirectory.

  2. Create a new screen and use the Quick Screen command on the Screen menu to insert all the fields.

  3. Double-click the COMPANY field.

  4. Click the Format button.

  5. Under Editing Options, select Trim.

  6. Click OK twice.

  7. Generate the screen and include a control screen.

  8. Run the screen by typing the following in the Command window:

    do <screen name>.spr

  9. Move to the COMPANY field.

  10. Delete all text from this field in this record.

  11. Move down to the next field.

  12. Try to move up to the COMPANY field. (You can't.)

  13. Move to the next record using the control.

  14. Move to the COMPANY field by pressing TAB or using the mouse.

  15. Modify the field, but do not leave it blank.

  16. Move around through the fields.


Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a Skips entry trim
moves
KBCategory: kbenv kbprg kbprb
KBSubcategory: FxenvMemory


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.