Recordset.count返回-1值 [英] Recordset.count returns -1 value

查看:112
本文介绍了Recordset.count返回-1值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,

在一次采访中,他们问了我一个问题.
如果Recordset.count返回-1值,那么它意味着什么.
我不知道答案.请给我一个解决方案.

Dear Friends,

In a interview, they have asked me a question.
If Recordset.count returns -1 value then what it means.
I dont know the answer for this. Kindly any one provide me a solution.

推荐答案

Recordset.RecordCount属性(ADO)
Recordset.RecordCount property (ADO)

RecordCount属性对于仅向前的游标将返回-1;静态或键集游标的实际计数;以及动态游标的-1或实际计数,具体取决于数据源.

The RecordCount property will return -1 for a forward-only cursor; the actual count for a static or keyset cursor; and either -1 or the actual count for a dynamic cursor, depending on the data source.



更多信息:
http://msdn.microsoft.com/zh-我们/library/windows/desktop/ms676701%28v=vs.85%29.aspx [ http://msdn.microsoft.com/en-us/library/office/ff821452.aspx [^ ]



More at:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms676701%28v=vs.85%29.aspx[^]
http://msdn.microsoft.com/en-us/library/office/ff821452.aspx[^]


这篇关于Recordset.count返回-1值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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