How to move cursor at the end of textbox

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

How to move cursor at the end of textbox

Post 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?
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: How to move cursor at the end of textbox

Post by Rathinagiri »

You can use SetProperty( cFormName, cControlName, "CaretPos", nPosition )
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply