L lixueguang Unregistered / Unconfirmed GUEST, unregistred user! 2002-09-18 #1 怎么插一段字符串到一个dbmemo中 要求插到光标所在的地方 有没有直接的insert方法?
Y YoungSun Unregistered / Unconfirmed GUEST, unregistred user! 2002-09-18 #2 var s : string; i : integer; begin i := dbmemo1.SelStart; s:=inputbox('','',''); dbmemo1.Lines.Insert(i,s); end;
var s : string; i : integer; begin i := dbmemo1.SelStart; s:=inputbox('','',''); dbmemo1.Lines.Insert(i,s); end;
L lixueguang Unregistered / Unconfirmed GUEST, unregistred user! 2002-09-18 #3 不对 i获得的是第几个字符 但插入的是第i行阿
T twos Unregistered / Unconfirmed GUEST, unregistred user! 2002-09-18 #4 i := dbmemo1.SelStart; insert(dbmemo1.text,i+1,astr); //astr是要插入的字符串