Total

Erhält die Anzahl der Elementen in der Liste.

int  Total() const

Rückgabewert

Die Anzahl der Elementen in der Liste.

Beispiel:

//--- example for CList::Total() 
#include <Arrays\List.mqh> 
//--- 
void OnStart() 
  { 
   CList *list=new CList; 
   //--- 
   if(list==NULL
     { 
      printf("Object create error"); 
      return
     } 
   //--- check total 
   int total=list.Total(); 
   //--- use list 
   //--- ... 
   //--- delete list 
   delete list; 
  }