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

# FindLanguage Method of the PredefinedLanguages Object

This method finds an element of the [**PredefinedLanguages**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/predefinedlanguages.md) collection by its internal name and returns a pointer to its interface.

## Syntax

```vb Visual Basic .NET theme={null}
Function FindLanguage(InternalName As String) As Language
```

```cpp C++ theme={null}
HRESULT FindLanguage(
  BSTR        InternalName,
  ILanguage** Result
);
```

## Parameters

**InternalName**

\[in] This variable specifies the internal name of the language.

**Result**

\[out, retval] A pointer to the **ILanguage\*** pointer variable that receives the interface pointer of the [**Language**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/language.md) object with the specified internal name. Returns NULL, if the language with the specified name is not found.

## Return values

If the specified language is not available, this method returns **E\_INVALIDARG** error code and NULL pointer to the language. It may also return [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## See also

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

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