Skip to content

TDataSet.GetFieldList

Return field instances in a list.

Declaration

Source position: db.pas line 1924

public 
procedure TDataSet.GetFieldList(List: TList; const FieldNames: string);

Description

GetfieldList parses FieldNames for names of fields, and returns the field instances that match the names in list. FieldNames must be a list of field names, separated by semicolons. The list is cleared prior to filling with the requested field instances.

Errors

If FieldNames contains a name of a field that does not exist in the dataset, then an EDatabaseError exception will be raised.

See also

Name Description
TDataset.GetFieldNames Return a list of all available field names.
TDataset.FieldByName Search a field by name.
TDataset.FindField Find a field by name.