LPARAMETERS nKeyCode, nShiftAltCtrl Do case case this.value="B" Nodefault This.value="BILL" This.selstart=len(this.value) case this.value="S" Nodefault This.value="BILLS" This.selstart=len(this.value) case this.value="Q" Nodefault This.value="CHEQUE #" This.selstart=len(this.value) EndcaseNB! Why do you use Alltrim when you assign a value?
>case1=alltrim(thisform.text1.value) >DO case >CASE case1="B" > this.VALUE=alltrim("BILL") >CASE case1="S" > this.VALUE=alltrim("BILLS") >CASE case1="Q" > this.VALUE=alltrim("CHEQUE # ") >ENDCASE >