Page 1 of 1

How to move cursor at the end of textbox

Posted: Thu Apr 15, 2010 5:34 am
by mol
This theme was present on the forum a few months ago, but I can't find it...
I want to change programmatically value of focused textbox - cut last entered char. But, when I cut textbox.value, cursor moves to the beginning of field.
How to move it at the end?

Re: How to move cursor at the end of textbox

Posted: Thu Apr 15, 2010 6:25 am
by Rathinagiri
You can use SetProperty( cFormName, cControlName, "CaretPos", nPosition )

Re: How to move cursor at the end of textbox

Posted: Thu Apr 15, 2010 6:49 am
by mol
thanks!