<div class="meta" robots="noindex">

</div>

Method

# Arrays.AddRowAt

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2020r2. Please use `Arrays.AddAt<arrays.addat>` as a replacement.

</div>

## Description

Adds a new row into an array at the specified *index*.

## Usage

*array*.**AddRowAt** *index*, *value*

| Part  | Type                               | Description                                    |
|-------|------------------------------------|------------------------------------------------|
| array | array of any valid data type       | The array in which to add the new row.         |
| index | `Integer</api/data_types/integer>` | The index in *array* to add the new row.       |
| value | Datatype of *array*                | The value to be assigned to the new array row. |

## Notes

The <span class="title-ref">AddRowAt</span> method works with one-dimensional arrays only.

Arrays can have a maximum index value of 2,147,483,646.

## Sample code

Consider the array *names* defined as follows:

``` xojo
names = Array("Leonard", "Abraham", "Herbert")
```

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

The statement:

``` xojo
names.AddRowAt(2, "Bill")
```

## Compatibility

All project types on all supported operating systems.

## See also

`Arrays</api/language/arrays>` parent class; `Arrays</api/language/arrays>` for a complete list of functions.
