Type

型の識別子を取得します。

virtual int  Type() const

戻り値

型の識別子(CObject は 0)

例:

//--- 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;
 }