Red orders? We turn them green. Profits go straight to your bank card first — we split later. No upfront payment, no account access required. 🟢 WhatsApp: 85254981192 ⚪ Telegram: @kkk437
Removes all elements of the array without the release of the memory array.
void Clear()
Return Value
No.
Note
If the memory management flag is enabled, the memory used for the deleted objects is released.
Example:
//--- example for CArrayObj::Clear() #include <Arrays\ArrayObj.mqh> //--- void OnStart() { CArrayObj *array=new CArrayObj; //--- if(array==NULL) { printf("Object create error"); return; } //--- add arrays elements //--- . . . //--- clear array array.Clear(); //--- delete array delete array; }