Clear the list of strings of the TStringList class.

 

Syntax

procedure TStringList.Clear;

 

Example


var
  SL: TStringList;
begin
  SL := TStringList.Create;
  
  SL.Append('One, two, three...');
 
  mLogScript(SL.Text, 'Before');
  SL.Clear;
  
  mLogScript(SL.Text, 'After');
  SL.Free;  
end.


Script work result

[17:09:01] (Log "ClearMethod"): [Before] One, two, three...

[17:09:01] (Log "ClearMethod"): [After]

[17:09:01] (Run "ClearMethod"): Script operation time: 5 ms

[17:09:01] (Run "ClearMethod"): Script done successfully.
 

See also
mLogScript

TStringList.Append

TStringList.Create

TStringList.Free

TStringList.Text

Created with the Personal Edition of HelpNDoc: Don't Let Unauthorized Users View Your PDFs: Learn How to Set Passwords