Download MetaTrader 5

CDealInfo::Comment() definition missing from DealInfo.mqh

To add comments, please log in or register
Max Payne
411
Max Payne  

I wanted to use Comment() from CDealInfo in my code, but got a very strange compiler message.

Turned out that the body for Comment() was indeed missing.

Add the following piece to DealInfo.mqh (updated file is attached):

//+------------------------------------------------------------------+
//| Get the property value "DEAL_COMMENT".                            |
//| INPUT:  no.                                                      |
//| OUTPUT: the property value "DEAL_COMMENT".                        |
//| REMARK: no.                                                      |
//+------------------------------------------------------------------+
string CDealInfo::Comment() const
  {
   return(HistoryDealGetString(m_ticket,DEAL_COMMENT));
  }
Files:
dealinfo.mqh 13 kb
To add comments, please log in or register