유형 식별자 가져오기.
virtual int Type() const
값 반환
유형 식별자 (CObject에는 0).
예시:
//--- CObject::Type() 예시 #include <Object.mqh> //--- void OnStart() { CObject *object=new CObject; //--- object=new CObject; if(object ==NULL) { printf("개체 생성 오류"); return; } //--- 개체 유형 가져오기 int type=object.Type(); //--- 개체 삭제하기 delete object; }