Menu

ClearList

Krzysztof Kamil Jacewicz

[ATUlib]: ClearList

Use this routine to conveniently clear lists of obects. You can choose whether or not objects on the list should be freed upon deleteion. This procedure catches any exception and continues even if any exception occurs without raising it.

Function header

Procedure ClearList(const AList: TList; const AFreeObjects: Boolean);

Parameters

  • AList - Reference to a list (TList) to have all its elements celared
  • AFreeObjects - if true then every element upon deletion will be freed. If false, it will only be removed from the list.

Related

Wiki: ATUlib

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.