Home All Groups Group Topic Archive Search About

OdbcDataReader.getString(field as String) ?

Author
27 Jul 2006 11:16 AM
myname
Hello,

I'm using VB.Net 2003.

OdbcDataRead.getString(i as integer) allows me to retrieve fields by index.

Is there any way to get fields by field name ?

Thanks !

Author
27 Jul 2006 11:25 AM
Ken Tucker [MVP]
Hi,

dim s as string =OdbcDataRead.Item("ColumnName").ToString

Ken
----------------------
Show quoteHide quote
"myname" <nospam@ihatespam.com> wrote in message
news:44c89e0f$1@news.sncf.fr...
> Hello,
>
> I'm using VB.Net 2003.
>
> OdbcDataRead.getString(i as integer) allows me to retrieve fields by
> index.
>
> Is there any way to get fields by field name ?
>
> Thanks !
>
>