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

This method adds a new reason at the end of the collection.

> [!NOTE]
>
> After a call to this method you should set at least the [**ReasonCode**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/statusreason.md#reasoncode) and [**ReasonDescription**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/statusreason.md#reasondescription) properties for the added new reason.

## Syntax

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

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

## Parameters

**Result**

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

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

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