>>>Is there a way to prevent that when I'm at the end of a textbox, the cursor go back of one position?
>>>
>>>I have the SET CONFIRM ON activated.
>>>
>>>Thanks, Luca
>>
>>
You can do it with adding some code to your textbox class :
>>
>>this.maxlength = this.maxlength + 1
>>
>>* Keypress
>>LPARAMETERS nKeyCode, nShiftAltCtrl
>>if this.selstart = ( this.maxlength - 1 ) ;
>> and ( isalpha(chr(nKeyCode)) or isdigit(chr(nKeyCode)) )
>> nodefault
>>endif
Cetin
>
>
>It seems to work fine, but in numeric field with InputMask and in Date fields it doesn't work.
>
>Luca
As expected :) In numeric fields you might try to increase inputmask by one. In date fields ??? On my part I never "set confirm on" and have this problem. Instead of "set confirm on" what about buffering ?
Cetin