- StringTrimLeft() and StringTrimRight() don't change the string, they return a new (trimmed) string instead. You should read the documention of the functions you use. How can you call a function if you didn't even have only one single look at its documentation? Its always only one keystroke (F1) away from you!
- There is no such thing as an "if loop", a loop is a loop and an if is not a loop.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
I read my txt-File into and buffer (with the kernel32.dll like here https://www.mql5.com/en/articles/1540) .
Now I extract to word "tuesday" as the first word in the second line:
on the Print-function I see that Str = tuesday, but the if-loop isn't true!
When I wrote everything in ONE line, it works.
So, how could I delete the new line before "tuesday" (even if I can't see it)?