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

# Next Method of the EnumDictionaryWords Object

This method retrieves the next word from the iteration sequence together with the word's weight in the dictionary.

## Syntax

### C++

```cpp theme={null}
HRESULT Next(
  int*  Confidence,
  BSTR* Result
);
```

### C\#

```csharp theme={null}
string Next( out int Confidence );
```

### Visual Basic .NET

```vb theme={null}
Function Next(ByRef Confidence As Integer) As String
```

## Parameters

Confidence

\[out] This parameter serves for passing out the confidence of the word. Confidence or weight of the word in the dictionary defines the priority level for a word; this value is used to choose among word variants during text recognition. The higher this value is, the more preferable is this variant for the recognized word. When the iteration is over, 0 will be assigned to this parameter.

Result

\[out, retval] A pointer to the BSTR variable that receives the return value of this method — word from the dictionary. When the iteration is over, 0 is returned.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## See also

[EnumDictionaryWords](/fine-reader/engine/api-reference/language-related-objects/enumdictionarywords)
