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

# TDataSet.GetFieldNames

Return a list of all available field names

## Declaration

Source position: db.pas line 1601

`public procedure TDataSet.GetFieldNames(`
`List: TStrings`
`);`

## Arguments

`List` |  | List in which to return field names

## Description

GetFieldNames returns in List the names of all available fields, one field per item in the list. The dataset must be open for this function to work correctly.

## See also

TDataset.GetFieldNameList
TDataset.FieldByName |  | Search a field by name
TDataset.FindField |  | Find a field by name

Documentation generated on: Feb 26 2014