//--- CObject::Type() の例
#include <Object.mqh>
//---
void OnStart()
{
CObject *object=new CObject;
//---
object=new CObject;
if(object ==NULL)
{
printf("Object create error");
return;
}
//--- オブジェクトの型を取得する
int type=object.Type();
//--- オブジェクトを削除する
delete object;
}
|