int linecount=RichEdit1-Lines-Count; RichEdit1- SelStart=SendMessage(RichEdit1- Handle,EM_LINEINDEX,linecount,0); RichEdit1- SelStart=RichEdit1-SelStart+linecount;
int linecount=RichEdit1->Lines->Count;
RichEdit1-> SelStart=SendMessage(RichEdit1-> Handle,EM_LINEINDEX,linecount,0);
RichEdit1-> SelStart=RichEdit1->SelStart+linecount;