项目:为了评估索引属性,属性必须是限定的,并且参数必须由用户明确提供. [英] Item: In order to evaluate an indexed property, the property must be qualified and the arguments must be explicitly supplied by the user.

查看:23
本文介绍了项目:为了评估索引属性,属性必须是限定的,并且参数必须由用户明确提供.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了多个组合框,从中我从创建的存储过程中为每个组合框提取了数据,所有这些组合框一直工作到今天早些时候,其中 2 个组合框停止工作,检查立即窗口"行和列,我得到了列的结果,但是当我检查列时,例如 ?dsContactTitles.Tables(0).Rows 我得到以下作为出现列表的一部分:

I created multiple combo-boxes from which i extracted data for each of them from the stored procedure created, all these boxes were working until earlier on today, 2 of the combo boxes stopped working, on checking the "immediate window" for the rows and columns,i got results for the columns but when i check for the columns e.g ?dsContactTitles.Tables(0).Rows i get the following as part of the list that comes up:

item: In order to evaluate an indexed property, the property must be qualified and the 
arguments must be explicitly supplied by the user.

否则,当我检查特定行时,我会收到一个 ArrayOutOfBoundException.这已经完美运行了很长时间,请问有人知道这种不一致的原因吗?.

else when i check for a specific row i get an ArrayOutOfBoundException. this was working perfectly for a long time, please would anyone know the cause of this inconsistency?.

推荐答案

由于您在即时窗口中转储整个 Rows 对象,因此您将看到 Rows 对象的属性列表.属性之一是 Item,但这需要一个索引才能显示任何有效数据,这就是消息告诉您的内容.

Since you are dumping the entire Rows object in the immediate window, you are seeing the list of properties for the Rows object. One of the properties is Item, but this requires an index in order to display any valid data, which is what the message is telling you.

如果您查看 ?dsContactTitles.Tables(0).Rows.Item(0),那么您将看到第一行(如果存在).

If you look at ?dsContactTitles.Tables(0).Rows.Item(0), then you will see the first row, if one exists.

如果您检查特定行并获得索引越界错误,则意味着您不再从数据库中检索该行.尝试手动执行您的存储过程以查看它是否返回您期望的值.如果没有,您需要更新数据库或存储过程.

If you check a specific row and get an index out of bounds error, then that means you are no longer retrieving the row from the database. Try executing your stored procedure manually to see if it is returning the values you expect. If not, you either need to update your database or the stored procedure.

这篇关于项目:为了评估索引属性,属性必须是限定的,并且参数必须由用户明确提供.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆