Length is used to return the length of a string or array.
Example: This code came from Greg Liefs example "CHANGING CURSOR POSITION IN AN EDIT OR MEMO".
Edit1.SelStart := Length(Edit1.Text) ;