What is the maximum string size or string length for ObjectSetText in MQL4?

What is the maximum string size or string length for ObjectSetText in MQL4?

Manage alerts

Loading saved threads...

TheRumpledOne · External communityPost link
External question — Stack Overflow Stack Exchange Author: TheRumpledOne Original post: https://stackoverflow.com/questions/67140256 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. Comment(MSGARRAY[0], "\n" , MSGARRAY[01], "\n" , MSGARRAY[02] , "\n" , " error:" , err, "\n" , "") ; does not truncate strings(see yellow text upper left in chart below) but ObjectCreate(tLabel,23,0,Time[0],PRICE_CLOSE); ObjectSet(tLabel, OBJPROP_CORNER, myCorner ); ObjectSet(tLabel,OBJPROP_XDISTANCE,xPos); ObjectSet(tLabel,OBJPROP_YDISTANCE,yPos); ObjectSetText(tLabel,name,myFontSize,myFont,Color); truncates. What am I doing wrong/not doing right? Thanks EDIT: I am reading text from a file and that's where the truncation is happening. int h = FileOpen(FileName, FILE_TXT|FILE_READ); if(h != INVALID_HANDLE) { Comment("File "+FileName+" not found in MQL FILES FOLDER."); for (int c=0; !FileIsEnding(h) && c<9999; c++) { if (FileIsEnding(h)) break; MSGARRAY[c]=FileReadString(h); } FileClose(h); } else { Comment(FileName +" not found in MQL FILES FOLDER. OR... File Must Be Open..."); }
Quote
Report

Post Reply

Checking account access…