|
CopyArrayCells | ||||
CopyArrayCells SourceArray(), SrcStartElement, SrcElementDelta, DestArray(), DestElement, DestElementDelta, Length | ||||
Parameters: SourceArray() = The Array you wish to copy SrcStartElement = The address of starting element SrcElementDelta = The difference between elements DestArray() = The Array where you wish the copied data be placed. DestElement = The address of starting element in the destination array DestElementDelta = The difference between destination elements Length = The number of the elements to copy |
||||
Returns: NONE | ||||
CopyArrayCells will copy a selection of elements (cells) from one array into another. While the source and destination arrays must be of the same type, you can copy any type of array you wish, including Integer, Floating point, Strings and even Typed arrays. This can save the programmer having to manually move information. FACTS: * If the destination array previously contained information, CopyArray will undim the destination and then clone the Source data into the Destination. * CopyArrayCells can be used upon Integer, Floating Point, String and Type arrays. Mini Tutorial #1: In this simple example, we'll create an integer array, fill it random values. Then transfer this array into another using Copyrray and then display them both together.
This example would output something like this.
Mini Tutorial #2: In this simple example, we'll create two typed arrays, fill one with random values. Then transfer the first 5 type elements from the Mydata1 into another using CopyArrayCells and then display the copy. The elements are copied
This example would output something like this.
|
Related Info: | CopyArray | CopyMemory | getArrayPtr | MoveArray | SwapArray : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |