Removes the element at the specified index position from the List<T>. Elements further in the list are moved up one position in the list and the size of the list is decreased by one. An error is raised if the index is beyond the bounds of the list (index < 1 or index > size of the list).

Return type: VOID

Access: PUBLIC

Applies to: Progress.Collections.List<T> class

Syntax

RemoveAt(index AS INTEGER)
index
The one-based index of the element to remove.
Note: Any iterators on the list become invalid once Add(), AddAll(), Clear(), Insert(), Remove(), RemoveAt(), or Set() are called, and you must get a new iterator to iterate over the list.

Example

For a code example showing RemoveAt(), see Progress.Collections.List<T> class .

See also

<T> Generic type reference