【发布时间】:2021-04-17 16:11:35
【问题描述】:
Comment(MSGARRAY[0], "\n" ,
MSGARRAY[01], "\n" ,
MSGARRAY[02] , "\n" ,
" error:" , err, "\n" ,
"") ;
不截断字符串(见下图左上角的黄色文字)但是
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);
截断。
我做错了什么/做错了什么?
谢谢
编辑: 我正在从文件中读取文本,这就是发生截断的地方。
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...");
}
【问题讨论】:
标签: string object mql4 truncation