caret in a DBEdit

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?
jupeAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
kretzschmarConnect With a Mentor Commented:
hi jupe,

what about

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

meikl ;-)
0
 
jupeAuthor Commented:
Hi meikl

Thanks and good nite.

jupe
0
All Courses

From novice to tech pro — start learning today.