>>LPARAMETERS nKeyCode, nShiftAltCtrl >>if between(nKeyCode, 32, 255) and isalpha(chr(nKeyCode)) >> NODEFAULT >> DODEFAULT(Asc(Upper(Chr(nKeyCode)))) >>ENDIF>
If nKeyCOde>0 and ISALPHA(CHR(nKeyCode)) NODEFAULT nKeyCode=ASC(UPPER(CHR(nKeyCode))) DODEFAULT() EndIfThis code, where I have separated the two condiotions, works....!
If nKeyCode>0 If IsAlpha(Chr(nKeyCode)) NoDefault nKeyCode=Asc(Upper(Chr(nKeyCode))) DoDefault() EndIf EndIf