JCL Help:ClearObjectList

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Clears the contents of a TList which contains objects.


Pascal

 procedure ClearObjectList(List: TList);


Parameters

Parameters Description
List: TList The list to clear.


Description

ClearObjectList clears the contents of the specified list. The routine assumes that each item in the list is a TObject descendant and frees these objects before removing them from the list. If the list contains items other than TObject descendants, the result is unpredictable (likely an access violation will occur).


See Also

FreeObjectList


About

Unit

JclSysUtils


Donator

Heri Bender


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page