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

# Find Method

This method allows you to find an environment variable in the collection by the name.

## Syntax

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

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

## Parameters

**Name**

\[in] This parameter specifies the name of the environment variable.

**Result**

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

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

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

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