Type

Obtiene el identificador de tipo.

virtual int  Type() const

Valor devuelto

Identificador de tipo (para CObject - 0).

Ejemplo:

//--- ejemplo de CObject::Type()
#include <Object.mqh>
//---
void OnStart()
  {
   CObject *object=new CObject;
   //---
   object=new CObject;
   if(object ==NULL)
     {
      printf("Error en la creación del objeto");
      return;
     }
   //--- obtiene el identificador de tipo
   int type=object.Type();
   //--- borra el objeto
   delete object;
  }