Download MetaTrader 5

Help: sintax doubt

To add comments, please log in or register
snatoli
94
snatoli  
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
6691
Carl Schreiber  

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  
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
6691
Carl Schreiber  

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