ObjectSet and ObjectSetText not recognised by MetaEditor context sensitivity and don't operate as expected
You posted code says if the call succeeds (returns true) print an error message, otherwise print OK. That is why the error code comes back as zero.
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
Hello
Trying out code from https://www.mql5.com/en/forum/130611/3340415#comment_3340415 as I have plotted a series of HLINEs and want to change the font of the descriptions of each:
Does not work. Nor does it if I change Magenta to clrMagenta. The ObjectSetText reference was not highlighted in metaeditor when I tried checking internal list of functions nor did it offer me args when I hit the '(': not in the compiler version 1601 build?
GetLastError Error code comes back as 0 no error. Weirdly, the text is updated, but stays grey, sized and font like the system color of the top-left of every chart.
Is this a bug, or something wrong with my system?
Thanks