Download MetaTrader 5

merge two single dimension array together

To add comments, please log in or register
Dua Yong Rew
5485
Dua Yong Rew  

Hi,

I need to know how can I merge two single dimension array together

string SymArrPB[],

       SymArrPF[];

 What function do I use to merge into something one big array?

Thanks 

Sergey Dzyublik
5171
Sergey Dzyublik  

I see two ways:

a) create new array with needed size and use 2 times CopyArray function to SymArrPB and SymArrPF
б) Use ArrayResize to one of the buffers and use CopyArray function to other buffer

Dua Yong Rew
5485
Dua Yong Rew  
ALXIMIKS:

I see two ways:

a) create new array with needed size and use 2 times CopyArray function to SymArrPB and SymArrPF
б) Use ArrayResize to one of the buffers and use CopyArray function to other buffer

Thanks. Was looking through all array functions didn't know its copyarray instead of arraycopy
To add comments, please log in or register