TSL语言基础 > Object TSL > TSL内置对象使用大全 > TStringList对象 > TStringList对象的属性

CommaText    

简述

逗号分割串。将每个字符串用,分割连接起来。若字符串中间有逗号,则在字符串两头加”号(注,单引号无效),若字符串中还包含”号,如字符串’ 3,a"bc’,则用'"3,a""bc"'表达。

类型:读写
定义
CommaText:String;
  • 范例




    obj:=CreateObject('TStringList');

      obj.CommaText:='ABC,12,"3,a""bc"';

      return array(obj.strings(0),obj.strings(1),obj.strings(2));



    //返回:

相关