ErrorDesc - MetaTrader 5 Library | MT5 EA Download - MetaTrader 5 Resources
The code is based on the error description library.
The library contains the function error_describe() which has two input parameters: error_code and the optional parameter txt_prefix .
string error description ( integer error code, string txt_prefix = "" )
GetLastError() return codes can be found here https://www.mql5.com/en/docs/constants/errorswarnings/errorcodes .
Recoded field values for the OrderSend() function can be found in https://www.mql5.com/en/docs/constants/errorswarnings/enum_trade_return_codes .
Both tables are included in the error_description() function.
The library test.mq5 script can be used to check the description of known error codes. Just execute the script with the input error value to set the error code and print the description. If the error value is set to -1 the script will print all available error codes.
Attachment download
📎 errordesc.mqh (84.01 KB)
📎 librarytest.mq5 (16.51 KB)
Source: MQL5 #20305
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •