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

# AddNew Method of the Countries Object

This method adds a country configuration at the end of the collection.

> [!NOTE]
>
> After a call to this method you should set at least the following properties for the added new country: [**Name**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/country.md#name), [**Alpha2Code**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/country.md#alpha2code), and [**Languages**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/country.md#languages).

> [!NOTE]
>
> For newly added countries, [**IsEnabled**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/country.md#isenabled) is True by default.

## Syntax

```vb Visual Basic .NET theme={null}
Function AddNew() As Country
```

```cpp C++ theme={null}
HRESULT AddNew(
  ICountry** Result
);
```

## Parameters

**Result**

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

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

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