Results 1 to 5 of 5

Thread: C# OleDbDataReader Version ??[Resolved]

  1. #1

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    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.

  2. #2

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    Re: C# OleDbDataReader Version ??

    *bump*

  3. #3
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    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

  4. #4

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    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 !

  5. #5

    Thread Starter
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    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
  •  



Click Here to Expand Forum to Full Width