在C#中读取ADODB.recordset [英] reading ADODB.recordset in c#

查看:996
本文介绍了在C#中读取ADODB.recordset的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在C#编程中还很陌生,我试图读取Recordset.
我在互联网上找不到很多东西.
我试过下面的代码,但是它只是以列名进入无限循环.

I am quite new in c# programming, I tried to read a Recordset.
I did not find much on internet.
I have tried following code but it goes in an infinite loop with just name of columns.

ADODB.Recordset rs = new ADODB.Recordset();
rs=oTheBooks.OrderEntry.get_GetBlockOrderList(DateTime.Today.AddDays(-1),"CANCELLED");
     while (!rs.EOF)
    {
        Console.WriteLine(rs.Fields);
    }
    Console.WriteLine(rs);
}


我应该怎么做才能从此记录集中获取信息?

感谢您的帮助.


What should i do to get info from this recordset ?

Thank you for any help

推荐答案

rs.MoveNext();

放入while循环.

Piet

into the while loop.

Piet


阅读 [^ ]


这篇关于在C#中读取ADODB.recordset的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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