木子屋 Dnawo's BLOG

VB.NET运行出错:索引(从零开始)必须大于或等于零,且小于参数列表的大小。

👤 dnawo 📅 2008-05-13 👁 7801 👍 0 💬 0 🔄 本站原创
VB.NET运行出错提示:Index (zero based) must be greater than or equal to zero and less than the size of the argument list.(索引(从零开始)必须大于或等于零,且小于参数列表的大小。)

查了下代码,发现错误的地方:

resFileName = String.Format("{0}_allurl.rar")

少了一个参数,正确应为:

resFileName = String.Format("{0}_allurl.rar",resId)

评论(0)

暂无评论。

计算题
评论需审核通过后显示
← 上一篇 谈ADO访问不同数据库的差别 下一篇 → C#调用批处理