InsertArray
Inserts an array of elements from another array ukazannogy position.
bool InsertArray(
const long& src[],
int pos
) |
Parameters
src[]
[in] Reference to an array of source elements to insert
pos
[in] Position in the array to insert
Return Value
Example:
//--- example for CArrayLong::InsertArray(const long &[],int)
#include <Arrays\ArrayLong.mqh>
//---
long src[];
//---
void OnStart()
{
CArrayLong *array=new CArrayLong;
//---
if(array==NULL)
{
printf("Object create error");
return;
}
//--- insert another array
if(!array.InsertArray(src,0))
{
printf("Array inserting error");
delete array;
return;
}
//--- use array
//--- . . .
//--- delete array
delete array;
} |