System.DynamicArray.CopyRange

From RAD Studio API Documentation
Jump to: navigation, search

C++

DynamicArray<T>::CopyRange(DynArrInt startIndex, DynArrInt count) const
DynamicArray<T>::CopyRange(DynamicArray<T>& dst, DynArrInt startIndex,
                                                 DynArrInt count) const

Properties

Type Visibility Source Unit Parent
function public sysdyn.h System DynamicArray

Description

Copies a range of the contents of a DynamicArray within a specified range.

Use the CopyRange method to copy a subrange of a dynamic array. The CopyRange method is similar to the Copy method, except that you can specify the startIndex and the number of items to copy from the source object. The size of the destination array will be truncated or expanded to accommodate what has been copied.

newArray = array.CopyRange(3, 5);

See Also