No idea what the problem is but I get the same behavior here.
It looks like StringFormat doesn't accept a string argument that exceeds 4065 characters in length.
No idea what the problem is but I get the same behavior here.
It looks like StringFormat doesn't accept a string argument that exceeds 4065 characters in length.
Hello!
That's it! Thank you very much. I tried it again and again:
StringFormat doesn't accept a string argument that exceeds 4092 characters in length.
But I cannot find this important info in the MQL5 reference! That is very bad.
Yesterday I needed a whole evening fighting with this problem :-(
Now I know this limitation of the StringFormat function. You gave me the crucial information. Thanks again.
You are an experienced MQL5 software developer, aren't you? (May be I will have further questions in the future...)
Matthias
- www.mql5.com
Hi, I assume there's an internal buffer with a fixed size, and if the sum of all strings used for StringFormat exceeds that size it will return an empty result. I need to run a few tests about this.
If you have more interesting questions, meet me/us here in the forum. As the language is evolving, and the documentation sometimes misses details, it's always good to know about such limitations.
Hi, I assume there's an internal buffer with a fixed size, and if the sum of all strings used for StringFormat exceeds that size it will return an empty result. I need to run a few tests about this.
If you have more interesting questions, meet me/us here in the forum. As the language is evolving, and the documentation sometimes misses details, it's always good to know about such limitations.
Hmmm, why not using a loop?
Do you mean a loop for incremental construction of the string? Yes, that is what I do now.
If you know your limitations you can overcome them :-)
Matthias
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
now I need your expertise.
I have trouble creating a string and outputting it on a file:
The content of file with name PosData.txt is:
START of Problem END
Where are my pos-data???? Mostly(!) there are missing.
I don't get it now! Please help!
Thanks a lot.
I'm using Metatrader 5 build 2776
Matthias
____________
"It is more important to feel strong than to be strong."