TheStringInit.mq5script has been created to demonstrate the above functions. It uses a special version of the PRT macro, PRTE, which parses the result of an expression intotrueorfalse, and in the case of the latter additionally outputs an error code: ...
As a result, we will see an irrelevant error code (for example, from a previous function call). But that's not all. Built-in variable _LastError can change its value almost anywhere in the evaluation of an expression if any operation fails. In particular, the function EnumToString can ...
The Dispatcher class starts the operation passed to it via a delegate in the graphic interface thread and thus avoids the error. After completing the description of the lambda expression for graphics launch, we need to configure the thread as a Single Threaded Apartment and run it, thus running...
TheStringInit.mq5script has been created to demonstrate the above functions. It uses a special version of the PRT macro, PRTE, which parses the result of an expression intotrueorfalse, and in the case of the latter additionally outputs an error code: ...
As a result, we will see an irrelevant error code (for example, from a previous function call). But that's not all. Built-in variable _LastError can change its value almost anywhere in the evaluation of an expression if any operation fails. In particular, the function EnumToString can ...