FireDAC.Comp.BatchMove.TFDBatchMove.GuessFormat

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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

C++

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

Properties

Type Visibility Source Unit Parent
procedure
function
public
FireDAC.Comp.BatchMove.pas
FireDAC.Comp.BatchMove.hpp
FireDAC.Comp.BatchMove TFDBatchMove

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