Click here to Skip to main content
15,913,722 members
Home / Discussions / C#
   

C#

 
AnswerRe: adding context sensitive help to forms Pin
sam#15-Oct-06 20:16
sam#15-Oct-06 20:16 
QuestionReDim Pin
amaneet15-Oct-06 19:51
amaneet15-Oct-06 19:51 
AnswerRe: ReDim Pin
AB777115-Oct-06 20:01
AB777115-Oct-06 20:01 
GeneralRe: ReDim Pin
amaneet15-Oct-06 20:20
amaneet15-Oct-06 20:20 
GeneralRe: ReDim Pin
AB777115-Oct-06 20:24
AB777115-Oct-06 20:24 
AnswerRe: ReDim Pin
Amar Chaudhary16-Oct-06 9:19
Amar Chaudhary16-Oct-06 9:19 
QuestionAnimation control problem Pin
Parshant Verma15-Oct-06 19:30
Parshant Verma15-Oct-06 19:30 
QuestionArray Indexing Pin
Expert Coming15-Oct-06 18:43
Expert Coming15-Oct-06 18:43 
I am trying to get a string from a database. The code for that works fine. I next want to add those strings to an array. This is where the problem occurs. What am I doing wrong?

for (int i = 0; i < arrayLevels.Length; i++)<br />
                {<br />
                    int iLevelOridinal = rdr.GetOrdinal("Level");<br />
                    string szLevel = rdr.GetString(iLevelOridinal);<br />
<br />
                    arrayLevels[i] = szLevel;<br />
                }


The error is:

Cannot apply indexing with [] to an expression of type 'System.Array'

I understand the error but do not know how to fix it, all help would be great!

The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.

AnswerRe: Array Indexing Pin
AB777115-Oct-06 19:17
AB777115-Oct-06 19:17 
GeneralRe: Array Indexing Pin
Expert Coming15-Oct-06 19:18
Expert Coming15-Oct-06 19:18 
GeneralRe: Array Indexing Pin
AB777115-Oct-06 19:22
AB777115-Oct-06 19:22 
GeneralRe: Array Indexing Pin
Expert Coming15-Oct-06 19:25
Expert Coming15-Oct-06 19:25 
AnswerRe: Array Indexing Pin
Captain See Sharp15-Oct-06 19:31
Captain See Sharp15-Oct-06 19:31 
QuestionRead data from Web in HTML file Pin
leanhsang15-Oct-06 17:30
leanhsang15-Oct-06 17:30 
AnswerRe: Read data from Web in HTML file Pin
ejuanpp16-Oct-06 4:04
ejuanpp16-Oct-06 4:04 
QuestionMouse Gesture Recognition and Neural Networks Pin
tmp015-Oct-06 16:49
tmp015-Oct-06 16:49 
QuestionHow-To: Customize Desktop Pin
Super Lloyd15-Oct-06 12:54
Super Lloyd15-Oct-06 12:54 
AnswerRe: How-To: Customize Desktop Pin
Nader Elshehabi15-Oct-06 13:53
Nader Elshehabi15-Oct-06 13:53 
GeneralRe: How-To: Customize Desktop Pin
Super Lloyd15-Oct-06 15:14
Super Lloyd15-Oct-06 15:14 
AnswerRe: How-To: Customize Desktop Pin
Amar Chaudhary15-Oct-06 14:58
Amar Chaudhary15-Oct-06 14:58 
GeneralRe: How-To: Customize Desktop Pin
Super Lloyd15-Oct-06 15:14
Super Lloyd15-Oct-06 15:14 
GeneralRe: How-To: Customize Desktop Pin
Super Lloyd17-Oct-06 2:17
Super Lloyd17-Oct-06 2:17 
QuestionA question about async call of an assembly... Pin
Orkun GEDiK15-Oct-06 11:55
Orkun GEDiK15-Oct-06 11:55 
AnswerRe: A question about async call of an assembly... Pin
Nader Elshehabi15-Oct-06 13:59
Nader Elshehabi15-Oct-06 13:59 
GeneralRe: A question about async call of an assembly... Pin
Orkun GEDiK15-Oct-06 20:02
Orkun GEDiK15-Oct-06 20:02 

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.