int ObjectsTotal(int type=EMPTY)
Returns total amount of objects of the specified type in the chart.
チャートで指定した型のオブジェクトの合計数を返します。
Parameters: パラメータ:
| type |
- |
Optional parameter. An object type to be counted.
It can be any of the Object type enumeration values or EMPTY constant to count all objects with any types.
省略可能なパラメータ。カウントするオブジェクトの型。オブジェクト型の列挙値、または、任意の型の全てのオブジェクトをカウントするEMPTY定数のいずれかを指定できます。 |
|
Sample: サンプル: int obj_total=ObjectsTotal();
string name;
for(int i=0;i<obj_total;i++)
{
name=ObjectName(i);
Print(i,"Object name for object #",i," is " + name);
}
|