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

 

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