Manipulate the Text of a TEdit component

In a TEdit field, when the user changes it, I want the Onchange Event to modify the content of the Text and place the cursor at the end of it.
LVL 1
LeTayAsked:
Who is Participating?
 
LeTayAuthor Commented:
That's what I want
I found the solution by myself : TEdit.SelStart := Length(TEdit.Text);
Question can be closed
0
 
Geert GOracle dbaCommented:
what if the user changes letters in the middle of the text ?
the event will fire for every change (that's every letter) done by the user

so when the user is typing, suddenly the code puts the cursor at the end, and the user keeps typing

rahter odd ... no ?
0
 
Geert GOracle dbaCommented:
you are the one with the power to close the question
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
LeTayAuthor Commented:
I never did that ...
0
 
Geert GOracle dbaCommented:
wow, really ?
just accept your own answer
0
 
Geert GOracle dbaCommented:
closed
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.