Article ID: 148918
Article Last Modified on 9/30/2003
THISFORM.lastchar = 32
This assigns the numeric value of a space (32) to the lastchar variable.
IF THISFORM.lastchar = 32 && Checks lastchar to see if it is
&& equal the numeric value of a space.
NODEFAULT && Doesn't allow the character to be
&& entered because it is lowercase.
KEYBOARD UPPER(CHR(nKeyCode)) && Places the character into the
&& text box in uppercase.
ENDIF
IF nKeyCode=127 AND LEN(ALLTRIM(this.value))=1 && Checks to see if
&& the user has backspaced over
&& the first letter in the text box.
THISFORM.lastchar=32 && Assigns numeric value of a space
&& to lastchar.
ELSE
THISFORM.lastchar= nKeyCode && Assigns last keystroke to Lastchar
ENDIF
van camp
Additional query words: VFoxWin
Keywords: kbcode KB148918