Files
mql5-skills/skills/mql5/references/docs/03-predefined/0210-predefined-lasterror.md
T

6 lines
370 B
Markdown
Raw Normal View History

2026-06-23 21:47:51 +08:00
# int _LastError
The _LastError variable contains code of the last [error](/en/docs/constants/errorswarnings/errorcodes), that occurred during the mql5-program run. Its value can be reset to zero by [ResetLastError()](/en/docs/common/resetlasterror).
To obtain the code of the last error,  you may also use the [GetLastError()](/en/docs/check/getlasterror) function.