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

# FindByName Method of the Fields Object

This method allows you to find a field by its name.

## Syntax

```vb Visual Basic .NET theme={null}
Function FindByName(Name As String) As Field
```

```cpp C++ theme={null}
HRESULT FindByName(
  BSTR     Name,
  IField** Result
);
```

## Parameters

**Name**

\[in] This variable contains the name of the field to be found.

**Result**

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

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

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

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