clear

clear() updating;

The clear method of the List class clears all entries from the collection array, as shown in the following example.

countNotes();
vars
    noteArray : NotificationArray;
begin
    create noteArray transient;
    system.getNotes(noteArray, true, 32000);
    write noteArray.size.String & ' transient notifications';
    noteArray.clear;
    system.getNotes(noteArray, false, 32000);
    write noteArray.size.String & ' persistent notifications';
epilog
    delete noteArray;
end;