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

# Método FindByName del objeto Lotes

Este método permite buscar un lote por su nombre.

## Sintaxis

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

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

## Parámetros

**Name**

\[in] Esta variable contiene el nombre del lote que se va a buscar.

**Result**

\[out, retval] Puntero a la variable [**IBatch**](https://docs.abbyy.com/es/flexi-capture/sdk/api-reference/batch.md)\*\*\*\*\* que recibe el puntero de interfaz del lote. Devuelve NULL si no se encuentra ningún lote con el nombre especificado.

## Valores de retorno

Este método no tiene valores de retorno específicos. Devuelve los [valores de retorno estándar de las funciones de ABBYY FlexiCapture SDK](https://docs.abbyy.com/es/flexi-capture/sdk/api-reference/errorcodes.md).

## Consulte también

[**Lotes**](https://docs.abbyy.com/es/flexi-capture/sdk/api-reference/batches.md)

[**Lote**](https://docs.abbyy.com/es/flexi-capture/sdk/api-reference/batch.md)
