MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Object functions  ObjectName

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
string ObjectName( int index)
The function returns the object name by its index in the objects list. To get the detailed error information, one has to call the GetLastError() function.
Parameters:
index   -   Object index in the objects list. Object index must exceed or equal to 0 and be less than ObjectsTotal().
Sample:
  int    obj_total=ObjectsTotal();
  string name;
  for(int i=0;i<obj_total;i++)
    {
     name=ObjectName(i);
     Print(i,"Object name is " + name);
    }