Click here to Skip to main content
15,917,565 members
Home / Discussions / C#
   

C#

 
AnswerRe: crystall report viewer Pin
crazymubashir19-Apr-06 20:13
crazymubashir19-Apr-06 20:13 
QuestionPlug-in based development… Pin
anderslundsgard18-Apr-06 21:16
anderslundsgard18-Apr-06 21:16 
AnswerRe: Plug-in based development… Pin
Jon Hulatt19-Apr-06 0:39
Jon Hulatt19-Apr-06 0:39 
GeneralRe: Plug-in based development… Pin
anderslundsgard19-Apr-06 3:21
anderslundsgard19-Apr-06 3:21 
QuestionUse dll file written by C++ MFC in C# Pin
cuongcntt200218-Apr-06 21:08
cuongcntt200218-Apr-06 21:08 
AnswerRe: Use dll file written by C++ MFC in C# Pin
Aaron Dilliard19-Apr-06 4:01
Aaron Dilliard19-Apr-06 4:01 
QuestionException: Array index out of bounds Pin
Kranti125198418-Apr-06 21:03
Kranti125198418-Apr-06 21:03 
AnswerRe: Exception: Array index out of bounds Pin
Tehnoon18-Apr-06 22:09
Tehnoon18-Apr-06 22:09 
There is a very obvious mistake that you are making here. The query myQuery is returning you only one column per row. You are using dataReader.GetTime(1) , which is trying to get the second column (indexes are zero based, not 1 based) and hence generating an index out of range exception, because there is nothing at the "1" ordinal.

Solution:

Change the line
classStartTime = dataReader.GetTime(1).ToString();
to
classStartTime = dataReader.GetTime(0).ToString();



GeneralRe: Exception: Array index out of bounds Pin
J4amieC18-Apr-06 22:11
J4amieC18-Apr-06 22:11 
AnswerRe: Exception: Array index out of bounds Pin
Guffa18-Apr-06 22:09
Guffa18-Apr-06 22:09 
GeneralRe: Exception: Array index out of bounds Pin
Kranti125198418-Apr-06 22:18
Kranti125198418-Apr-06 22:18 
GeneralRe: Exception: Array index out of bounds Pin
J4amieC18-Apr-06 23:06
J4amieC18-Apr-06 23:06 
GeneralRe: Exception: Array index out of bounds Pin
Kranti125198418-Apr-06 23:09
Kranti125198418-Apr-06 23:09 
GeneralRe: Exception: Array index out of bounds Pin
J4amieC18-Apr-06 23:48
J4amieC18-Apr-06 23:48 
GeneralRe: Exception: Array index out of bounds Pin
Kranti125198419-Apr-06 0:24
Kranti125198419-Apr-06 0:24 
GeneralRe: Exception: Array index out of bounds Pin
J4amieC19-Apr-06 0:40
J4amieC19-Apr-06 0:40 
Questioncombo boxes and picture uploading in c# Pin
nomsnoms18-Apr-06 21:02
nomsnoms18-Apr-06 21:02 
GeneralRe: combo boxes and picture uploading in c# Pin
Yuvi Panda19-Apr-06 2:46
Yuvi Panda19-Apr-06 2:46 
Questionusage of GE API Pin
naveedqau18-Apr-06 20:18
naveedqau18-Apr-06 20:18 
QuestionHow we transfer a table from dbf to sql server 2000 through programming in c# with table schema Pin
Vinod Soni18-Apr-06 20:17
Vinod Soni18-Apr-06 20:17 
Questionexport the contents of a datagrid to a SQL 2000 Pin
Gavish George18-Apr-06 20:03
Gavish George18-Apr-06 20:03 
QuestionRegex.Split() produces extra null strings Pin
Vikram A Punathambekar18-Apr-06 19:58
Vikram A Punathambekar18-Apr-06 19:58 
AnswerRe: Regex.Split() produces extra null strings Pin
Guffa18-Apr-06 20:48
Guffa18-Apr-06 20:48 
GeneralRe: Regex.Split() produces extra null strings Pin
Vikram A Punathambekar18-Apr-06 21:19
Vikram A Punathambekar18-Apr-06 21:19 
GeneralRe: Regex.Split() produces extra null strings Pin
Jon Hulatt19-Apr-06 0:53
Jon Hulatt19-Apr-06 0:53 

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.