[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'db' (#fcl)

# TDefCollection.GetItemNames

Return a list of all names in the collection

## Declaration

Source position: db.pas line 161

`public procedure TDefCollection.GetItemNames(`
`List: TStrings`
`);`

## Arguments

`List` |  | List to fill with the names of the items in the collection.

## Description

GetItemNames fills List with the names of all items in the collection. It clears the list first.

## Errors

If List is not a valid TStrings instance, an exception will occur.

## See also

TNamedItem.Name |  | Name of the item

The latest version of this document can be found at lazarus-ccr.sourceforge.net .