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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
LeTayAuthor Commented:
That's what I want
I found the solution by myself : TEdit.SelStart := Length(TEdit.Text);
Question can be closed
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Geert GOracle dbaCommented:
you are the one with the power to close the question
0
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

LeTayAuthor Commented:
I never did that ...
0
Geert GOracle dbaCommented:
wow, really ?
just accept your own answer
0
Geert GOracle dbaCommented:
closed
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.