SortMode

정렬 버전을 가져옵니다.

int  SortMode() const

Return Value

정렬 모드, 또는 목록이 정렬되지 않은 경우 -1.

예제:

//--- CList::SortMode() 예제
#include <Arrays\List.mqh> 
//--- 
void OnStart() 
  { 
   CList *list=new CList; 
   //--- 
   if(list==NULL
     { 
      printf("객체가 오류를 생성합니다"); 
      return
     } 
   //--- 정렬 모드 확인 
   int sort_mode=list.SortMode(); 
   //--- 리스트 사용 
   //--- ... 
   //--- 리스트 삭제 
   delete list; 
  }