Click here to Skip to main content
15,919,245 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
C#
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
Posted
Updated 20-Mar-12 8:51am
v3

put
rs.MoveNext();
into the while loop.

Piet
 
Share this answer
 
Comments
fjdiewornncalwe 20-Mar-12 14:51pm    
+5. Good catch.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900