- 人气:
- 放大
- 缩小
- 二维码
- 赞赏
delphi Delete 字符串函数
Delphi-Delete 过程
过程名称 Delete
所在单元 System
过程原型 procedure Delete ( var Source : string; StartChar : Integer; Count : Integer ) ;
过程功能 删除一个字符串中指定位置和数量的字符
函数备注 第一个参数是一个字符串,第二个参数是开始删除的索引序号,第三个参数是删除的字符的数量.
举例如下
var
s: string;
begin
s := 'http://www.txttool.com';
Delete(s,1,7);
ShowMessage(s); // s = 'www.txttool.com'
end;