FireDAC.Comp.BatchMove.TFDBatchMove.GuessFormat

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
FireDAC.Comp.BatchMove.pas
FireDAC.Comp.BatchMove.hpp
Unit: FireDAC.Comp.BatchMove
Parent: TFDBatchMove

Delphi

procedure GuessFormat(AAnalyze: TFDBatchMoveAnalyze = [taDelimSep, taHeader, taFields]);

C++

void __fastcall GuessFormat(TFDBatchMoveAnalyze AAnalyze = (TFDBatchMoveAnalyze() << TFDBatchMoveAnalyzeItem::taDelimSep << TFDBatchMoveAnalyzeItem::taHeader << TFDBatchMoveAnalyzeItem::taFields ));

Description

Use the GuessFormat method to automatically recognize the data source format.

GuessFormat only applies for the data sources without associated metadata, such as TFDBatchMoveTextReader. As a result of the recognition the reader gets the metadata required to process the data source as a data table. AAnalyze argument controls the parts of the metadata to recognize. See TFDBatchMoveAnalyze for details.

Another option is to use the Analyze property. When Analyze is not empty, the GuessFormat method is automatically called by the Execute method.

The automatic recognition uses rule based prediction, which cannot guarantee an absolutely correct recognition in all cases. In such cases an application may call the GuessFormat method and then verify the recognition results. In case of using a TFDBatchMoveTextReader the application may verify and adjust the DataDef property value.

See Also