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.
この関数は、オブジェクト一覧のインデックスからオブジェクトの名前を返します。詳細なエラー情報を取得するには、GetLastError() 関数を呼び出します。
Parameters: パラメータ:
| index |
- |
Object index in the objects list.
Object index must exceed or equal to 0 and be less than ObjectsTotal().
オブジェクト一覧のオブジェクト インデックス。
オブジェクト インデックスは、0以上で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);
}
|