Download MetaTrader 5
To add comments, please log in or register
Do you want to write a trading robot? Find solution in MQL5 Reference!
snatoli
94
snatoli 2014.12.16 08:20 
If I have A1[],A2[],A3[] variables and another integer i, is there the possibility, in mql4 programming, to use something like A&&i[] for A1[],A2[],...? For example: A1[1]=10; i=1; B=Ai[1]; (macro substitution) thanks
Carl Schreiber
5962
Carl Schreiber 2014.12.16 08:48  

I am not quite sure what you want as "A&&i[] for A1[],A2[],...?" doesn't really fit with "For example: A1[1]=10; i=1; B=Ai[1];"

All what you can do with arrays you find here in the Book

snatoli
94
snatoli 2014.12.16 09:09  
Thanks for the answer. The problem is the same also for a normal variable, not only for array. In clipper, nice language, if you have Var1=10 and i="1" you can set B=Var&i that is the same than B=Var1; is this possible in mql4? thanks
Carl Schreiber
5962
Carl Schreiber 2014.12.16 11:08  

hmm? clipper is not mt4!

Again read in the Book what Mql4 can and what it cannot!

You can  do int a = b = Var1;

/
To add comments, please log in or register