简单问题:如何把字符串插到memo中光标所停留的位置?
先获取当前光标位置,再插入字符串。
有正确答案马上结贴,谢谢各位帮忙!
[解决办法]
uses ClipBrd;
procedure TForm1.Button1Click(Sender: TObject);
begin
ClipBoard.AsText := 'abc ';
showmessage(inttostr(Memo1.SelStart));//光标位置
Memo1.PasteFromClipboard;
end;