尝试使用串联编程...而不是说
UpdatePLOF.FolderPath = "PLOF" + plof.Id + ".txt";
尝试类似的东西:
UpdatePLOF.FolderPath = "PLOF {0} .txt", plof.Id;
对于PLOF {0} .txt只是告诉我赋值,调用,增量等...对于plof.id就是告诉我;需要
你需要一个 String.Format
UpdatePLOF.FolderPath = string.Format("PLOF {0} .txt", plof.Id);
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句