🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.language.csharp
Article #278

Re: DataSet FieldByName ?

#278
From: Rise
Date: Wed, 21 Dec 2005 02:41
10 lines
1388 bytes
> I'll start by assuming that you are asking about a DataTable since
> that is the closest thing .NET has to a TDataset. Also don't forget
> that DataTable's don't have the concept of a current row like TDataset
> does. Usually you just do:

Or you could simply do the following...

SQLDataReader.GetString(SQLDataReader.GetOrdinal("ClientName"));

Exactly what I wanted. 
Technical Details
Message-ID: <43a8c097@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43a80473$1@newsgroups.borland.com> <1r7kyofrs3yzd.dlg@marcrohloff.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,40ad613e8137d362
X-Google-Attributes: gid1efe35,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Rise" <rise@rise.com>
Newsgroups: borland.public.csharpbuilder.language.csharp
References: <43a80473$1@newsgroups.borland.com> <1r7kyofrs3yzd.dlg@marcrohloff.com>
Subject: Re: DataSet FieldByName ?
Date: Wed, 21 Dec 2005 10:41:55 +0800
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 203.161.87.205
Message-ID: <43a8c097@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1135132823 203.161.87.205 (20 Dec 2005 18:40:23 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail