delphi 字符串的分割


本文整理自网络,侵删。

  C#
**************
string strList='A,B,C,D';
string[] strArray=strList.Split(new Char[]{','});
//这里strArray里有4个元素,各自分别为:'A' , 'B' , 'C' , 'D'。

Delphi
**************
procedure StringSplit(const Delimiter : char; Input : string; const Strings : TStrings);
begin
  Assert(Assigned(Strings));
  Strings.Clear;
  Strings.Delimiter := Delimiter;
  Strings.DelimitedText := Input;
end;

相关阅读 >>

Delphi测试数据库连接时间

Delphi 编写activex控件(ocx控件)的知识和样例

Delphi下pos机控制钱箱,客显,打印机

Delphi 读取eset nod32 的用户名与密码

Delphi改变图片的像素,即大小

Delphi统计字数(汉字+字母+符号)

Delphi 2009 之 tcategorypanelgroup[3]: color

Delphi injectmemexe

Delphi xe7 新的并行库 system.threading

Delphi 32位程序 out of memory 内存不足时解决办法之一

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...