本文介绍了获取索引超出范围异常可能是代码中的问题所在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

dbReader = DAL.GetCaseSumCasesAssnCtrlMgmtCtrlChargeCodesLeftJoin(ClientKey, txtCaseNumber.Text)
If dbReader.Read Then
Try
  txtmgm.Text = dbReader.Item("MgmtCtrlpKey")
  HoldMGMKey = dbReader.Item("AssnCtrlpKey")
Catch ex As Exception
End Try

在AssnCtrlpkey"处抛出异常

the exception is thrown at "AssnCtrlpkey"

推荐答案

在我看来,您的 dbReader 没有您请求的列(AssnCtrlpKey").检查该列的数据库查询.

It seems to me that your dbReader doesn't have the column you're requesting ("AssnCtrlpKey"). Check your database query for that column.

然而,你的问题非常模糊,以至于它是在黑暗中拍摄的.

Your question is sufficiently vague, however, that it's a shot in the dark.

这篇关于获取索引超出范围异常可能是代码中的问题所在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 23:12