caret in a DBEdit

jupe
jupe used Ask the Experts™
on
When I enter a number into  DBEdit1 by program (not via keyboard), the caret (cursor) is automatically positioned at the beginning of the number. I would like to position it to the end of the number. How can I do this?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2004
Commented:
hi jupe,

what about

procedure TForm1.DBEdit1Enter(Sender: TObject);
begin
  dbedit1.selstart := length(DBEdit1.Text);
end;

meikl ;-)

Author

Commented:
Hi meikl

Thanks and good nite.

jupe

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial