ArrayCopy dimenssions

 

Hi.

Im trying to use ArrayCopy to copy all the data in all of the dimenttions..

the problem is that i cant find any documentations on how to copy more than one dimension.

 

here is the code.

#define ORDERARRAY 100
double OrderArray[ORDERARRAY][3];
..
..
void InitOrder(int ticket, double sl, double tp)
{
   ArrayCopy(OrderArray, OrderArray, 1, 0, ORDERARRAY-1);
   OrderArray[0][0] = ticket;
   OrderArray[0][1] = sl;
   OrderArray[0][2] = tp;
}

 now if i would use one dimenssion 'OrderArray[ORDERARRAY] = x' it would work fine.

could anyone help me solve this problem with ArrayCopy or do i realy have to make a function that copys the dimessions one by one? 

 
Daniel Sic:

Hi.

Im trying to use ArrayCopy to copy all the data in all of the dimenttions..

the problem is that i cant find any documentations on how to copy more than one dimension.

 

here is the code.

 now if i would use one dimenssion 'OrderArray[ORDERARRAY] = x' it would work fine.

could anyone help me solve this problem with ArrayCopy or do i realy have to make a function that copys the dimessions one by one? 

bump
Reason: