Article View: borland.public.csharpbuilder.language.csharp
Article #272[C# Error] WinForm.cs(300): 'Borland.Data.Provider.BdpDataReader' does not contain a definition for 'Item'
From: Terentius Neo
Date: Mon, 19 Dec 2005 15:54
Date: Mon, 19 Dec 2005 15:54
13 lines
1347 bytes
1347 bytes
Can anybody explain why I in the earth do I get this error message? The
piece of code is below.
private void PrintResult( BdpDataReader reader ) {
using (StreamWriter sw = new StreamWriter("C:\\temp\\TestFile.txt"))
{
for ( int i=0; i< reader.FieldCount; i++ ) {
sw.Write(reader.Item[i].ToString); //<<< here is the error
}
}
}
Technical Details
Message-ID:
<43a6d76c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!mpls-transit-01.news.qwest.net!38.119.100.82.MISMATCH!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,1b40ce50bfcdf0f2,start X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 19 Dec 2005 17:54:38 +0200 From: Terentius Neo <unknown@user.domain> User-Agent: Thunderbird 1.4.1 (Windows/20051006) MIME-Version: 1.0 Newsgroups: borland.public.csharpbuilder.language.csharp Subject: [C# Error] WinForm.cs(300): 'Borland.Data.Provider.BdpDataReader' does not contain a definition for 'Item' Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 80.221.66.91 Message-ID: <43a6d76c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1135007596 80.221.66.91 (19 Dec 2005 07:53:16 -0700) Lines: 13 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!mpls-transit-01.news.qwest.net!38.119.100.82.MISMATCH!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail