R rejoise Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-01 #1 字符串‘abcdef’,我想取得最左边的字符‘a’,最右面的字符‘f’, 中间任意一个或几个字符,比如说‘cde’,各用什么函数,请大侠回答,谢谢!
Z zhihuali Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-01 #2 var S,SubStr:String; begin S:='abcdef'; SubStr:=copy(S,1,1); SubStr:=Copy(S,Length(S),1); SubStr:=Copy(S,3,3); end
var S,SubStr:String; begin S:='abcdef'; SubStr:=copy(S,1,1); SubStr:=Copy(S,Length(S),1); SubStr:=Copy(S,3,3); end