Available

Erhält die Anzahl der freien Array-Elementen, die ohne zusätzliche Speicherzuweisung verfügbar sind.

int  Available() const

Rückgabewert

Die Anzahl der freien Array-Elementen, die ohne zusätzliche Speicherzuweisung verfügbar sind.

Beispiel:

//--- example for CArray::Available()
#include <Arrays\Array.mqh>
//---
void OnStart()
  {
   CArray *array=new CArray;
   //---
   if(array==NULL)
     {
      printf("Object create error");
      return;
     }
   //--- check available
   int available=array.Available();
   //--- use array
   //--- ...
   //--- delete array
   delete array;
  }