Knowledge Base

How to Force Input to Uppercase in a Combo Box

Article ID: 141804

Article Last Modified on 9/30/2003


APPLIES TO


This article was previously published under Q141804

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 query words: VFoxWin all caps

Keywords: kbcode KB141804