OrderSelect() returns false but GetLastError() returns 0 - page 2

 
goldfire:

To RaptorUK: I read your article

https://forum.mql4.com/48352

and I think I got what's wrong.. I will have a try. Thanks a lot.

Yep, was just going to post the link . . . it needs fixing even if you have other errors.
 
goldfire:

I checked my code and I thinke GetLastError() is invoked only once... See my code above.

Once ? When ? at first order scroll or at last order scroll ?.

Don't use OrderComment()==comment, brokers can change contents of comments.

I don't see any syntax error there :D.

Reason: