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

# MoveById Method of the Pages Object

This method allows you to move the page in the collection.

## Syntax

```vb Visual Basic .NET theme={null}
Sub MoveById( _
  Id As Integer, _
  NewIndex As Integer _
)
```

```cpp C++ theme={null}
HRESULT MoveById(
  int  Id,
  int  NewIndex
);
```

## Parameters

**Id**

\[in] This variable contains the identifier of the page which is to be moved. The identifier should be received as the value of the [**IPage::Id**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/page.md) property.

**NewIndex**

\[in] The page will be placed in the position **before** the page with this index. Must be in a range from 1 to the value of the [**IPages::Count**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/pages.md) property.

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

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