> ## 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.

# CreateEmbeddedLanguageByDataType Method of the TextRecognitionParams Object

This method creates a special recognition language, which can be used for recognition of the specified field value type.

It is not always convenient to specify the type of field value ([**IFieldDefinition::ValueType**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/fielddefinition.md#valuetype)) as this restricts field values. E.g. if a user enters incorrect data to such field, this will produce an error. To avoid specifying some special type of field value, you may:

1. Create a special language using this method. Set its parameters for recognition of a specific text.
2. Assign the created language to [**ITextRecognitionParams::Language**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/textrecognitionparams.md#language) property of the recognition parameters of the corresponding field.

## Syntax

```vb Visual Basic .NET theme={null}
Function CreateEmbeddedLanguageByDataType(type As FieldValueTypeEnum) As Language
```

```cpp C++ theme={null}
HRESULT CreateEmbeddedLanguageByDataType(
  FieldValueTypeEnum type,
  ILanguage**        result
);
```

## Parameters

**type**

\[in] This variable specifies the type of the field value. See the descriptions of the [**FieldValueTypeEnum**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/fieldvaluetypeenum.md) constants. Only the FVT\_DateTime, FVT\_Number, FVT\_Currency constants can be used as the value of this parameter.

**result**

\[out, retval] A pointer to the [**ILanguage**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/language.md)**\*** variable that receives the interface pointer for the created language.

## 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

[Setting Up Recognition Languages](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/settinguprecognitionlanguages.md)

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