|
-
Mar 21st, 2003, 07:21 AM
#1
Thread Starter
Sleep mode
C# OleDbDataReader Version ??[Resolved]
eeh just ran into another problem !
I couldn't find "Item" within this class ? I checked the documentation , it says , it's there ! Where the hell it's hiding ?
I just checked Object browser and didn't find it there , Which one should I believe MSDN or OB ?
Thanks
Last edited by Pirate; Mar 22nd, 2003 at 09:03 AM.
-
Mar 21st, 2003, 10:11 AM
#2
Thread Starter
Sleep mode
Re: C# OleDbDataReader Version ??
-
Mar 21st, 2003, 02:09 PM
#3
Frenzied Member
I dont think its there for the C# version, only in VB.NET
you have to use indexers like so
dReader.table[0][2];
Something to that effect.
Dont gain the world and lose your soul
-
Mar 21st, 2003, 05:39 PM
#4
Thread Starter
Sleep mode
Never mind , figured it out ! I've used GetValue , it suppose to work the same as Item in VB.NET version !
but there's another problem , I get this error why ??
" Class1.cs(184): Use of unassigned local variable 'adoReader' "
although I've used it somewhere as in here :
Code:
strTable =adoReader.GetValue(indx).ToString();
//error here
adoReader.Close();
Thank you !
-
Mar 22nd, 2003, 09:03 AM
#5
Thread Starter
Sleep mode
No need , got it worked dude .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|