pRowBuffer.set_Value(pFds.FindField("W_Mean"), Re_mean[3]);

此句代码弹出异常:The index passed was not within the valid range. 翻译为传递的索引不在有效范围

起初以为3超出了范围,多次修改实验,一直弹出这个错误。

搜索这个异常的时候,官网的资料是 Geocoding a table with blank values in the adress field genetates the error message;

自己翻译了一下,以为是Re_mean[3]的值的问题,所以将值改为其他,结果还是这个错误。

怀疑是FindFiled时没有找到这个name,将name多次对比,发现一样的。然后输出找到的索引,也是正常的。

折腾了一晚上,发现原来是创建Row的时候用的是另一张表!!!!

 

尼玛,大脑一时短路,折腾了一晚上!

 

相关文章:

  • 2021-11-10
  • 2021-06-25
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
  • 2022-12-23
猜你喜欢
  • 2021-11-08
  • 2021-07-07
  • 2021-11-25
  • 2022-12-23
  • 2022-12-23
  • 2021-06-27
  • 2021-11-07
相关资源
相似解决方案