Get the content of the list as one block. Strings are divided by commas.

 

Syntax

property TStringList.CommaText: string;

 

Result

A full text of the list in one string; the elements are divided by commas.

 

Example


var
  SL: TStringList;
  i: integer;
begin
  SL := TStringList.Create;
  
    for i := 1 to 10 do
      SL.Append(IntToStr(i));
  
  mLogScript(SL.CommaText, '');
  SL.Free;  
end.


Script work result

[17:30:55] (Log "CommaTextProperty"): 1,2,3,4,5,6,7,8,9,10

[17:30:55] (Run "CommaTextProperty"): Script operation time: 5 ms

[17:30:55] (Run "CommaTextProperty"): Script done successfully.

 

See also

mLogScript

TStringList.Append

TStringList.Create

TStringList.Free

Created with the Personal Edition of HelpNDoc: Add an Extra Layer of Security to Your PDFs with Encryption