MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Automated Trading Language Documentation

Screenshot
GOLD, D1
Demo
Interview with Ge Senlin (ATC 2011) Interview with Ge Senlin (ATC 2011) Dual Trix 15 and 30 Indicator
Dual Trix 15 and 30
Author: q_import
Subscribe to signal
Roboforex Signals
272.42%, 3 585.96 USD
VirtualTradePad SignalsStyleVirtualTradePad SignalsStyle Try product
VirtualTradePad SignalsStyle
Author: Vladon

Delete

Removes the element from the given position in the list.

bool  Delete(
   int  pos      // Position
   )

Parameters

pos

[in] position removes the element in the list.

Return Value

true if successful, false - if you can not remove the element.

Note

If enabled memory management, memory, removes the element is released.

Example:

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


Updated: 2010.02.09