斑竹好!
以下两种情况都可以正常输出:
path:= 'C:\Users\95\Desktop\New Folder\a'+numtostr(123,0)+'.txt';
debugfile2(path, 'my output',0,0);
path:= 'C:\Users\95\Desktop\New Folder\a'+stkname+'.txt';
debugfile2(path, 'my output',0,0);
但是以下的情况却不能输出:
path:= 'C:\Users\95\Desktop\New Folder\a'+stkname+numtostr(123,0)+'.txt';
debugfile2(path, 'my output',0,0);
这样的代码没有编译错误,但是系统会没有反应,完全没有这个txt文件产生