The ObjectName() appears illogical and nonfunctional.

 
To MeataQuotes:
Unless I am missing something the following function appears illogical since there may be more than one object assign to (i).
name=ObjectName(i); 


How do you get all objects assign to (i)?
In addition, even if only one object is assign to (i) the function returns wrong name.

 


To MeataQuotes:
Unless I am missing something the following function appears illogical since there may be more than one object assign to (i).
name=ObjectName(i); 


How do you get all objects assign to (i)?
In addition, even if only one object is assign to (i) the function returns wrong name.


Never mind I did figured it out.
 


To MeataQuotes:
Unless I am missing something the following function appears illogical since there may be more than one object assign to (i).


i is not a name! it is a index of an object. you can retrieve names of all objects from 0 to ObjectTotal()-1

// object count on the chart. 
int    obj_total=ObjectsTotal();
  string name;
  for(int i=0;i<obj_total;i++)
    {
     // retrieving name of object number i
     name=ObjectName(i);
     Print(i,"Object name is " + name);
    }



 
only one index can refer to only one object at one moment, but the same object can have different indexes at different moments