string GlobalVariableName(int index)
The function returns the name of a global variable by its index in the list of global variables. To get the detailed error information, one has to call the GetLastError().
この関数はグローバル変数の一覧から、そのインデックスのグローバル変数の名前を返します。詳細なエラー情報を取得するには、GetLastError() を呼び出します。
Parameters:
パラメータ:
| 1 2 3 4 | <b>index</b>   -   Index in the list of global variables.              It must exceed or be equal to 0 and be less than <a href="20170707095523/http://www.metasys-seeker.net/MQL4_Reference_ver1/14-08_GlobalVariablesTotal.html">GlobalVariablesTotal()</a>.              グローバル変数の一覧にあるインデックス。              それは、0 以上で、<a href="20170707095523/http://www.metasys-seeker.net/MQL4_Reference_ver1/14-08_GlobalVariablesTotal.html">GlobalVariablesTotal()</a>より小さい必要があります。 | 
Sample:
サンプル:
| 1 2 3 4 5 6 7 |   int    var_total=GlobalVariablesTotal();   string name;   for(int i=0;i<var_total;i++)     {      name=GlobalVariableName(i);      Print(i,": Global variable name - ",name);     } |