IF INLIST(nkeyCode,122,120,99,118,98,110,109,44,46,47) this.Value=ctSetProcTime(nKeyCode,this.value) NODEFAULT ENDIF>I downloaded (a long time ago) a little Timebox class that validates that the text entered is in HH:MM:SS format and it works great. I wanted to modify it so that if the user pressed any of the keys on the last row of the keyboard (zxcvbnm,./) that it would get set value and enter into the field. A basic quick time entry button. So in the keypress event of the class, I put the following code:
>IF INLIST(nkeyCode,'122,120,99,118,98,110,109,44,46,47') > this.Value=ctSetProcTime(nKeyCode,this.value) >ENDIF >>