PRB: Cursor Jumps Over Empty GET Field in Screen

ID: Q98447

The information in this article applies to:

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

Last Reviewed: June 27, 1995