Download MetaTrader 5
To add comments, please log in or register
Do you want to write a technical indicator? Find solution in MQL5 Reference!
Dua Yong Rew
5421
Dua Yong Rew 2015.04.25 07:35 

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
4797
Sergey Dzyublik 2015.04.25 09:09  

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
5421
Dua Yong Rew 2015.04.25 14:28  
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