Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 5th, 2004, 04:30 AM
Authorized User
 
Join Date: Jun 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default What is OleDBDataReader.GetValue() means?

I found the definition in the msdn but it didn't explain much, while others website has confused me. MSDN said it returns the value of the specified column in the current row datareader is reading about, while other website said it returns the value of the rows.

And what does it actually returns? Type int32? Can it be int16 as well? Return the value does it mean return the info on the specified column of the specified rows? Or the number of order of the row/column??
Thanx

 
Old July 5th, 2004, 08:46 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello,

There are other functions to get the value by type of Int32 and such. Those functions are:

GetInt16
GetInt32
GetInt64
GetBoolean
GetChar

etc. GetValue returns the value as object, so if you have option strict on, you will need to ctype the value to the appropriate type.

Brian
 
Old July 5th, 2004, 07:24 PM
Authorized User
 
Join Date: Jun 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanx a lot, this is much more clearer
:))






Similar Threads
Thread Thread Starter Forum Replies Last Post
DALBase? and Oledbdatareader nikosnyc VB Databases Basics 2 May 2nd, 2006 09:08 AM
What does it means in a EXCEL formula?! aarias Excel VBA 1 October 2nd, 2003 02:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.