memo使用问题
delphi吧
全部回复
仅看楼主
level 1
sdhfwf
楼主
如图所示,怎么写代码呢?
StringReplace(memo1.Lines.Text,
#10#
13, ',', [rfReplaceAll]);
memo2.Text:=memo1.Text;
这样写不可以的
2014年05月04日 09点05分
1
level 13
顶之座__赫卡特
StringReplace的返回值都被你丢弃了,等于没调用一样。
2014年05月04日 09点05分
2
sdhfwf
呵呵,傻了
2014年05月04日 09点05分
ayi033
回复 短_路ing :Memo继承于TCustomEdit;有Text
2014年05月09日 02点05分
level 8
yc515623876
MEMO TEXT 其实不是你看到的那样 所以用memo.lines[i] 相加算了
2014年05月05日 08点05分
3
level 5
斧头龟🌈
用memo的lines即可
--JJ Booms Fly 吊炸天
--来自嘎嘣脆客户端
2014年05月07日 00点05分
4
level 1
chun_lei2002
Memo1.lines.Delimiter := ',';
memo2.Lines.Append(memo1.Lines.DelimitedText);
2014年05月07日 14点05分
5
1