Article-17803-MQL5-MVC-Tabl.../TestEmptyTable.mq5
2026-03-30 00:37:05 +07:00

37 lines
1.7 KiB
MQL5

//+------------------------------------------------------------------+
//| TestEmptyTable.mq5 |
//| Copyright 2025, MetaQuotes Ltd. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2025, MetaQuotes Ltd."
#property link "https://www.mql5.com"
#property version "1.00"
//+------------------------------------------------------------------+
//| Включаемые библиотеки |
//+------------------------------------------------------------------+
#include "Tables.mqh"
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
//--- Создаём пустую таблицу 4x4
CTable *table=new CTable(4,4);
if(table==NULL)
return;
//--- Распечатываем её в журнале и удаляем созданный объект
table.Print(10);
delete table;
}
/*
Результат:
Table: Rows total: 4, Columns total: 4:
| n/n | A | B | C | D |
| 0 | | | | |
| 1 | | | | |
| 2 | | | | |
| 3 | | | | |
*/
//+------------------------------------------------------------------+