> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Train Method of the FieldsExtractionTrainer Object

This method trains fields extraction with the corresponding batch.

> [!WARNING]
>
> For this method, an operation cancellation signal called by the [**OnProgress**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/iprocessingevents-onprogress.md) notification does not guarantee its interruption.

## Syntax

```vb Visual Basic .NET theme={null}
Sub Train()
```

```cpp C++ theme={null}
HRESULT Train();
```

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## See also

[**FieldsExtractionTrainer**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/fieldsextractiontrainer.md)
