本文整理自网络,侵删。
Function DelChar(Ch : Char; S : String) : String; Var I : Integer;begin I := 1; While I <= Length(S) do begin If S[I] = CH then Delete(S, I, 1) else I := I + 1; end; result := S;end;
procedure TForm1.FormCreate(Sender: TObject);beginCaption:=DelChar('c','abcd');end;
相关阅读 >>
Delphi stringgrid 实例2:1、获取 stringgrid 的行数、列数; 2、给单元赋值
Delphi Delphi copy,pos,delete win api 版
更多相关阅读请进入《Delphi》频道 >>