How to Force Input to Uppercase in a Combo Box

ID: Q141804

3.00 3.00b WINDOWS

 kbhowto kbhowto

The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 3.0 and 3.0b

SUMMARY

In Visual FoxPro window 3.0, no Format property is available for a combo box to force user input to the text box region to be in uppercase.

MORE INFORMATION

Use the following sample code to force user input to be in upper case. Place the following code in the Keypress event of the combo box.

    If Islower(Chr(nKeycode))
       Nodefault
       Keyboard Upper(Chr(nKeycode))
    Endif

Additional reference words: 3.00 3.00b VFoxWin all caps KBCategory: kbhowto KBSubcategory: FxotherGeneral
Keywords          : kbcode FxotherGeneral 
Version           : 3.00 3.00b
Platform          : WINDOWS


Last Reviewed: May 22, 1998
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.