S sayou Unregistered / Unconfirmed GUEST, unregistred user! 2001-10-21 #1 有没有字符串截取的函数,如将"abcdefg"取出"ab",也就是取前两个
S sunys Unregistered / Unconfirmed GUEST, unregistred user! 2001-10-21 #4 str2:='abcdefg' str1:=copy(str2,1,2);
C chansin Unregistered / Unconfirmed GUEST, unregistred user! 2001-10-21 #7 function left(in_string:string;in_num:integer):string; begin left:=copy(in_string,1,in_num); end; str2:='abcdefg'; str1:=left(in_string,2);
function left(in_string:string;in_num:integer):string; begin left:=copy(in_string,1,in_num); end; str2:='abcdefg'; str1:=left(in_string,2);
L liuyanx Unregistered / Unconfirmed GUEST, unregistred user! 2001-10-21 #8 目的字符串 := copy(源字符串,从源第几个字符开始,copy的长度)
X xiaoyu_online Unregistered / Unconfirmed GUEST, unregistred user! 2001-10-21 #9 copy(s,pos,len):返回字符串S中,从位置POS开始的最大长度为LEN的子串。[]
X xiaosha_2000 Unregistered / Unconfirmed GUEST, unregistred user! 2001-10-24 #10 使用copy函数:function Copy(S Index, Count: Integer): string; []
C chenliang_fly Unregistered / Unconfirmed GUEST, unregistred user! 2001-10-25 #11 copy 函数很好用,格式copy (源字符串,从源第几个字符开始,copy的长度),如果索引<1, 函数自动转化从第一位开始复制,因此,s2:=copy (s1,0,2)和s2:=copy (s1,1,2)运行结果将 一样。
copy 函数很好用,格式copy (源字符串,从源第几个字符开始,copy的长度),如果索引<1, 函数自动转化从第一位开始复制,因此,s2:=copy (s1,0,2)和s2:=copy (s1,1,2)运行结果将 一样。
M MrHan Unregistered / Unconfirmed GUEST, unregistred user! 2001-10-25 #12 AnsiString Str("abcdefg"); AnsiString SubStr = Str.SubString(1,2);
T Tense Unregistered / Unconfirmed GUEST, unregistred user! 2001-10-25 #13 用copy没效率,通常采用delete函数。 delete();
Y yaoayao Unregistered / Unconfirmed GUEST, unregistred user! 2001-10-27 #15 s:='abcdefg'[1]+'abcdefg'[2]
Z zhao0707 Unregistered / Unconfirmed GUEST, unregistred user! 2001-10-27 #16 delphi/source/rtl/common/strUtils.pas 里面都是字符串处理函数,随你挑啊
S sunbh Unregistered / Unconfirmed GUEST, unregistred user! 2001-10-27 #17 str1:=copy('abcdefg',1,2);