Copies a range of elements from an MfListBase derived object starting at the first element and pastes them into another MfListBase object starting at the first element.
OutputVar := MfListBase.Copy(sourceList, destinationList, Length)
Copies a range of elements from an MfListBase derived object starting at the first element and pastes them into another MfListBase object starting at the first element.
sourceList
An object that derives from MfListBase.
destinationList
An object that derives from MfListBase. This is the list that elements from sourceList will be copied to.
length
The number of elements to copy from Source list into destination list.
Can be var integer or any type that matches IsIntegerNumber.
Throws MfInvalidOperationException if not called as a static method.
Throws MfArgumentNullException if any parameter is null.
Throws MfArgumentException if sourceList or destinationList does not derive from MfListBase.
Throws MfArgumentException if length is not a valid integer.
Throws MfArgumentOutOfRangeException if length is negative.
Throws MfArgumentException if length is greater then sourceList Count.
0.4
Static method.
If destinationList.Count is less then length then new elements will be added to destinationList to match length.
Any elements in destinationList up to the value of length will be overwritten with elements from sourceList.
This method is an O(n) operation, where n is Count.