本文整理自网络,侵删。
procedure TForm1.Button4Click(Sender: TObject);var
split: TStringList;begin split := TStringList.Create; split.Delimiter := '-'; split.DelimitedText := '123-456-789'; Caption:= split[0]+split[1]+split[2]; split.free;end;
相关阅读 >>
Delphi 构建时间 -encodedatetime … tryencodedatetime
Delphi dbgrideh 的分组统计 datagrouping
Delphi 建立快捷方式的函数: createshortcut
Delphi+access错误"不正常地定义参数对象。提供了不一致或不完整的信息。"
更多相关阅读请进入《Delphi》频道 >>