string ObjectDescription(string name)
Return object description. For objects of OBJ_TEXT and OBJ_LABEL types,
the text drawn by these objects will be returned.
オブジェクトの説明を返します。OBJ_TEXT および OBJ_LABEL 型のオブジェクトは、これらのオブジェクトで描画されるテキストが返されます。
To get the detailed error information, one has to call the GetLastError() function. 詳細なエラー情報を受け取るためには、GetLastError()
関数を呼び出さなくてはなりません。
参照 ObjectSetText() 関数
Parameters: パラメータ: name - Object name.
オブジェクトの名前 Sample: サンプル: // writing the chart objects list to the file
int handle, total;
string obj_name,fname;
// file name
fname="objlist_"+Symbol();
handle=FileOpen(fname,FILE_CSV|FILE_WRITE);
if(handle!=false)
{
total=ObjectsTotal();
for(int i=-;i<total;i++)
{
obj_name=ObjectName(i);
FileWrite(handle,"Object "+obj_name+" description= "+ObjectDescription(obj_name));
}
FileClose(handle);
}
|