将位置光标移动到编辑框中字符串的末尾

Moving the position cursor to the end of string in edit box

将字符串重新分配给编辑框后,光标移动到字符串中第一个字符之前。如何将位置光标设置到字符串的末尾?这是我当前的代码:

begin
  pin:=ledtAdminPin.Text;
  SetLength(pin, 4);
  ledtAdminPin.Text:=pin;
end;

使用 SelStart 属性:

ledtAdminPin.SelStart := high(Integer);