>>If nKeyCode>0 and chr(nKeyCode)=':' and this.selstart<4 >> this.selstart=4 >>Endif>
>9:15 PM
>
>The result is this:>9 : 1 5M >>I think what is happening is that the InputMask still feels that the 3rd key press (9,colon,1) - although it is starting after the colon - is a space. Or something like that. I haven't quite figured it out yet.
If nKeyCode>0 and chr(nKeyCode)=':' and this.selstart<4 this.value=transform(chrtran(this.value),':',''),'@R 99:99') && + ' AM' or ' PM', you must add logic for this also! this.selstart=4 Endif