display String : TRADE_RETCODE_DONE ?

 

Hi everyone,

Is it possible to display the constant as text, for example: TRADE_RETCODE_DONE, instead of the return code: 10009

I thought of the EnumToString function, but to do that I'd have to get the enumerator name?

Thank you in advance for your insights
Best Reguards,
ZeroCafeine 😉

Documentation on MQL5: Constants, Enumerations and Structures / Codes of Errors and Warnings / Trade Server Return Codes
Documentation on MQL5: Constants, Enumerations and Structures / Codes of Errors and Warnings / Trade Server Return Codes
  • www.mql5.com
Trade Server Return Codes - Codes of Errors and Warnings - Constants, Enumerations and Structures - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 

Hello. Have you tried this?

https://www.mql5.com/en/code/79

ErrorDescription
ErrorDescription
  • www.mql5.com
The library contains functions that returns description of runtime error codes and trade server return codes.
 
Yashar Seyyedin #:

Hello. Have you tried this?

https://www.mql5.com/en/code/79

Perfect, tks you 😉