MyChat Scripts: function TStringList.Clear, clear the list of strings
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.