Download MetaTrader 5

Convert Variable

To add comments, please log in or register
Mehmet Bastem
689
Mehmet Bastem  
string b11[20];
  string SeyranGrup[20]={"aa","bb","cc","dd"};
    b11[2]="Seyran"+"Grup";
   Alert(b11[2]);

 

result is SeyranGrup. how can I do it result= bb

i have 70 variables . I want to do with a for loop. But the name of the variable instead of the result. I want the content of the variable.

In the delphi language "'+ variable name'" we can get the contents of the variable. But in mql4 this is how the form is.

whroeder1
17122
whroeder1  
Mehmet Bastem: In the delphi language "'+ variable name'" we can get the contents of the variable. But in mql4 this is how the form is.
Does not exist!
nicholishen
1546
nicholishen  
Mehmet Bastem:
string b11[20];
  string SeyranGrup[20]={"aa","bb","cc","dd"};
    b11[2]="Seyran"+"Grup";
   Alert(b11[2]);

 

result is SeyranGrup. how can I do it result= bb

i have 70 variables . I want to do with a for loop. But the name of the variable instead of the result. I want the content of the variable.

In the delphi language "'+ variable name'" we can get the contents of the variable. But in mql4 this is how the form is.

What you're trying to do is use a name as a key to reference the variable instead of it's index #. In that case you need to use a hash table, which you'll have to find one in the codebase to suit your needs.
To add comments, please log in or register