BUG: ALT+<Key> Clears GET Field with Uppercase Formatting

ID: Q115001

The information in this article applies to:

SYMPTOMS

If a GET field is formatted to be uppercase and ALT+<any key> is pressed at the beginning of the field (for example, ALT+F to activate the File menu), the GET field's display will be cleared. Moving to another field restores the original contents of the GET field's display.

This behavior does not occur in FoxPro for Windows.

RESOLUTION

Instead of using a format, use the UPPER() function to convert the contents of the field to uppercase in the VALID clause.

STATUS

Microsoft has confirmed this to be a problem in FoxPro versions 2.5, 2.5a, and 2.5b for MS-DOS. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

1. USE the CUSTOMER database in the TUTORIAL subdirectory.

2. Create a new screen and place a GET field for the COMPANY field on the

   screen.

3. In the Field dialog box, choose the Format button and select the To
   Upper Case check box under Editing Options. Choose OK. "@!" will appear
   in the Format box.

4. Place a GET field for the CONTACT field on the screen. Do not format
   this GET field.

5. Generate the screen and run (DO) the .SPR file.

6. Press ALT+B (or any other character except 9, 0 (zero), D, R, and the

   characters that activate menu items). The contents of the COMPANY field
   will disappear.

7. Press TAB to move to the next field in the screen. The contents of
   COMPANY field will be restored.

Additional reference words: FoxDos 2.50 2.50a 2.50b buglist2.50 buglist2.50a buglist2.50b upper case capital letters KBCategory: kbdisplay kbbuglist KBSubcategory:

Last Reviewed: April 18, 1995