Click here to Skip to main content
16,013,642 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: how to use VSS--suggest the best approach Pin
pashitech27-Jun-07 20:57
pashitech27-Jun-07 20:57 
GeneralRe: how to use VSS--suggest the best approach Pin
pashitech27-Jun-07 20:57
pashitech27-Jun-07 20:57 
QuestionHow to control mouse and keyboard? Pin
re infecta27-Jun-07 19:47
re infecta27-Jun-07 19:47 
AnswerRe: How to control mouse and keyboard? Pin
Dave Kreskowiak28-Jun-07 4:38
mveDave Kreskowiak28-Jun-07 4:38 
QuestionName 'Listbox1' is not declared error Pin
jasontor27-Jun-07 19:47
jasontor27-Jun-07 19:47 
AnswerRe: Name 'Listbox1' is not declared error Pin
CPallini27-Jun-07 21:58
mveCPallini27-Jun-07 21:58 
AnswerRe: Name 'Listbox1' is not declared error Pin
Dave Kreskowiak28-Jun-07 4:28
mveDave Kreskowiak28-Jun-07 4:28 
QuestionThe syntax about IDataReader? [modified] Pin
cateyes9927-Jun-07 15:37
cateyes9927-Jun-07 15:37 
In the below code snippet, I know it does retrieve value of those specified columns from the Deals table, but look at dataReader("name"), what syntax is this? dataReader is declared as type of interface IDataReader, how can we use it in a way like calling a function? At the first glance, I think it's an overloaded operator - function form "()", but after checking with some documentation, in VB.Net, this operator isn't on the allowed operators list to be overload. So would anyone tell me what syntax is dataReader("name"). Many thanks.

Imports Microsoft.Practices.EnterpriseLibrary.Data
Imports Microsoft.Practices.EnterpriseLibrary.Data.Sql

...

        Dim lubc As New LookupBaseCollection(GetType(SectypeCommon))
        Dim sqlCommand As String = "SELECT * From Deals"
        Dim dbCommandWrapper As DBCommandWrapper = Me.database.GetSqlStringCommandWrapper(sqlCommand)
        dbCommandWrapper.CommandTimeout = Me.database.GetConnection().ConnectionTimeout

        Dim dataReader As IDataReader = Me.database.ExecuteReader(dbCommandWrapper)

        While (dataReader.Read())
            Dim sc As New SectypeCommon(dataReader("transtype").ToString())
            sc.Name = dataReader("name")
            sc.TheKey = dataReader("thekey")
            sc.ShortName = dataReader("code")
            ...
        End While


modified on Wednesday, March 30, 2011 10:16 PM

AnswerRe: The syntax about IDataReader? Pin
TwoFaced27-Jun-07 18:45
TwoFaced27-Jun-07 18:45 
GeneralRe: The syntax about IDataReader? Pin
cateyes9927-Jun-07 19:31
cateyes9927-Jun-07 19:31 
Questionuhm hey ive got a question Pin
ricebowl0927-Jun-07 14:17
ricebowl0927-Jun-07 14:17 
AnswerRe: uhm hey ive got a question Pin
Christian Graus27-Jun-07 14:32
protectorChristian Graus27-Jun-07 14:32 
AnswerRe: uhm hey ive got a question Pin
Rupesh Kumar Swami27-Jun-07 19:15
Rupesh Kumar Swami27-Jun-07 19:15 
GeneralRe: uhm hey ive got a question Pin
Christian Graus27-Jun-07 19:40
protectorChristian Graus27-Jun-07 19:40 
GeneralRe: uhm hey ive got a question Pin
Rupesh Kumar Swami27-Jun-07 20:26
Rupesh Kumar Swami27-Jun-07 20:26 
GeneralRe: uhm hey ive got a question Pin
Mycroft Holmes27-Jun-07 22:46
professionalMycroft Holmes27-Jun-07 22:46 
Questionhow to create something similar to .htaccess Pin
uglyeyes27-Jun-07 13:49
uglyeyes27-Jun-07 13:49 
AnswerRe: how to create something similar to .htaccess Pin
Christian Graus27-Jun-07 13:58
protectorChristian Graus27-Jun-07 13:58 
QuestionData bound combo box in datagridview Pin
steve_rm27-Jun-07 11:30
steve_rm27-Jun-07 11:30 
AnswerRe: Data bound combo box in datagridview Pin
AlexeiXX327-Jun-07 11:57
AlexeiXX327-Jun-07 11:57 
Questioncontrast and sharpness change of image Pin
Mortezai27-Jun-07 7:44
Mortezai27-Jun-07 7:44 
AnswerRe: contrast and sharpness change of image Pin
Dave Kreskowiak27-Jun-07 7:57
mveDave Kreskowiak27-Jun-07 7:57 
AnswerRe: contrast and sharpness change of image Pin
Christian Graus27-Jun-07 10:49
protectorChristian Graus27-Jun-07 10:49 
Questiondata binding update data source Pin
Mortezai27-Jun-07 6:49
Mortezai27-Jun-07 6:49 
AnswerRe: data binding update data source Pin
Dave Kreskowiak27-Jun-07 7:13
mveDave Kreskowiak27-Jun-07 7:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.