Click here to Skip to main content
15,905,325 members
Home / Discussions / C#
   

C#

 
GeneralRe: Understanding Jagged Arrays Pin
Jasmine250120-May-13 12:47
Jasmine250120-May-13 12:47 
GeneralRe: Understanding Jagged Arrays Pin
N8tiv20-May-13 13:04
N8tiv20-May-13 13:04 
GeneralRe: Understanding Jagged Arrays Pin
Jasmine250120-May-13 13:31
Jasmine250120-May-13 13:31 
GeneralRe: Understanding Jagged Arrays Pin
N8tiv20-May-13 13:41
N8tiv20-May-13 13:41 
GeneralRe: Understanding Jagged Arrays Pin
N8tiv23-May-13 21:17
N8tiv23-May-13 21:17 
Questioncounting in c# Pin
MKS Khalid20-May-13 0:50
MKS Khalid20-May-13 0:50 
AnswerRe: counting in c# Pin
Eddy Vluggen20-May-13 1:17
professionalEddy Vluggen20-May-13 1:17 
AnswerRe: counting in c# Pin
Pete O'Hanlon20-May-13 1:26
mvePete O'Hanlon20-May-13 1:26 
AnswerRe: counting in c# Pin
Keith Barrow20-May-13 2:12
professionalKeith Barrow20-May-13 2:12 
AnswerRe: counting in c# Pin
Richard MacCutchan20-May-13 3:10
mveRichard MacCutchan20-May-13 3:10 
GeneralRe: counting in c# Pin
MKS Khalid20-May-13 8:32
MKS Khalid20-May-13 8:32 
AnswerRe: counting in c# Pin
Abhinav S20-May-13 5:13
Abhinav S20-May-13 5:13 
Questionnested for Pin
MKS Khalid19-May-13 21:42
MKS Khalid19-May-13 21:42 
AnswerRe: nested for Pin
Richard MacCutchan19-May-13 21:55
mveRichard MacCutchan19-May-13 21:55 
AnswerRe: nested for Pin
Keith Barrow19-May-13 22:46
professionalKeith Barrow19-May-13 22:46 
AnswerRe: nested for Pin
Abhinav S20-May-13 0:36
Abhinav S20-May-13 0:36 
QuestionC# Assignment Pin
Member 1006323419-May-13 9:14
Member 1006323419-May-13 9:14 
AnswerRe: C# Assignment - Repost Pin
Richard MacCutchan19-May-13 9:36
mveRichard MacCutchan19-May-13 9:36 
GeneralRe: C# Assignment - Repost Pin
Member 1006323419-May-13 9:37
Member 1006323419-May-13 9:37 
GeneralRe: C# Assignment - Repost Pin
Richard MacCutchan19-May-13 9:46
mveRichard MacCutchan19-May-13 9:46 
GeneralRe: C# Assignment - Repost Pin
Member 1006323419-May-13 9:49
Member 1006323419-May-13 9:49 
AnswerRe: C# Assignment Pin
NotPolitcallyCorrect19-May-13 10:16
NotPolitcallyCorrect19-May-13 10:16 
Because
combo[].Substring(0, 7)

a string array does not have a Substring method. You have to supply an index to the array to access an element in the array.

Then the next error is because you cannot convert a char to a string,
string name = Convert.ToChar(
. SubString would already be returning a string so why would you try and convert the string to a char anyway?

The next error after that is because you are trying a access a part of the string that does not exist. The parameters for Substring are the starting index and the length,
Substring(7, 12)
, starting at index 7 and counting for 12 characters is greater than the length of your string.

Learn to use the debugger, it will serve you well.
GeneralRe: C# Assignment Pin
Member 1006323419-May-13 10:26
Member 1006323419-May-13 10:26 
GeneralRe: C# Assignment Pin
NotPolitcallyCorrect19-May-13 10:38
NotPolitcallyCorrect19-May-13 10:38 
GeneralRe: C# Assignment Pin
Member 1006323419-May-13 10:57
Member 1006323419-May-13 10:57 

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.