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

Automated Trading Language Documentation

Force of GravityForce of Gravity Try product
Force of Gravity
Author: achidayat
Skype Control Library Library
Skype Control Library
Author: avoitenko
Subscribe to signal
Learning2live
427.19%, 15 815.70 USD
Screenshot
GOLD, H1
Demo
Drawing Indicator's Emissions in MQL5 Drawing Indicator's Emissions in MQL5

Clear

Deletes all of the array elements without memory release.

void  Clear()

Return Value

None.

Example:

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


Updated: 2010.02.09