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

</div>

Method

# Arrays.Append

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

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `Arrays.Add<arrays.add>` as a replacement.

</div>

## Description

Appends a new element to the end of a one-dimensional array, increasing the size of the array by one. The value must match the data type of the array.

## Usage

*array*.**Append**(*value*)

| Part  | Description                                        |
|-------|----------------------------------------------------|
| array | Required. The array to be appended.                |
| value | The value to be assigned to the new array element. |

## Notes

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

## Sample code

This example appends a new element to the end of the names array. The new element becomes the last element of the array.

``` xojo
Dim names() As String
names.Append("Betty")
```

## Compatibility

All project types on all supported operating systems.

## See also

`Arrays</api/language/arrays>` parent class; `Dim</api/language/dim>` statement; `Array</api/language/array>`, `String<string.fromarray>`, `String<string.split>`, `Arrays<arrays.lastindex>` functions; `Arrays.IndexOf<arrays.indexof>`, `Arrays<arrays.addat>`, `Arrays.Pop<arrays.pop>`, `Redim</api/language/redim>`, `Arrays<arrays.removeat>`, `Shuffle</api/language/shuffle>`, `Sort<arrays.sort>`, `Arrays.Sortwith<arrays.sortwith>` methods; `ParamArray</api/language/paramarray>` keyword; `Arrays</api/language/arrays>` concept
