Click here to Skip to main content
15,904,023 members
Home / Discussions / C#
   

C#

 
QuestionWriting C# Code when working with MS Access 2007-2010 Pin
Said Ali Jalali28-Mar-10 21:51
Said Ali Jalali28-Mar-10 21:51 
AnswerRe: Writing C# Code when working with MS Access 2007-2010 Pin
R. Giskard Reventlov28-Mar-10 22:34
R. Giskard Reventlov28-Mar-10 22:34 
AnswerRe: Writing C# Code when working with MS Access 2007-2010 Pin
Dave Kreskowiak29-Mar-10 3:38
mveDave Kreskowiak29-Mar-10 3:38 
QuestionA Question about List<T> in C# [modified] Pin
jojoba201128-Mar-10 19:55
jojoba201128-Mar-10 19:55 
AnswerRe: A Question about List in C# Pin
Gaurav Dudeja India28-Mar-10 19:57
Gaurav Dudeja India28-Mar-10 19:57 
GeneralRe: A Question about List in C# Pin
Brad Barnhill9-Apr-10 2:05
Brad Barnhill9-Apr-10 2:05 
QuestionRe: A Question about List in C# Pin
jojoba201128-Mar-10 20:02
jojoba201128-Mar-10 20:02 
AnswerRe: A Question about List in C# Pin
Mycroft Holmes28-Mar-10 20:31
professionalMycroft Holmes28-Mar-10 20:31 
You are attempting to create the List<>Age in the if statements and then working with Age outside the if statements, VS gets does not know if Age actually exists.

What if i = -1, neither of your ifs will create Age and it would be null so vs spits the dummy and makes you clean up your code. And as you are trying to make the list different formats then you are in trouble, if there is going to be characters in your Age then just use List<string> and test the values for numerics in the consuming process.
Never underestimate the power of human stupidity
RAH

AnswerMessage Removed Pin
28-Mar-10 20:27
Tej Aj28-Mar-10 20:27 
QuestionRe: A Question about List in C# Pin
jojoba201128-Mar-10 20:30
jojoba201128-Mar-10 20:30 
AnswerRe: A Question about List in C# Pin
Som Shekhar28-Mar-10 20:37
Som Shekhar28-Mar-10 20:37 
AnswerRe: A Question about List in C# Pin
Tej Aj28-Mar-10 20:39
Tej Aj28-Mar-10 20:39 
GeneralRe: A Question about List in C# Pin
Mirko198028-Mar-10 23:11
Mirko198028-Mar-10 23:11 
GeneralRe: A Question about List in C# Pin
Tej Aj28-Mar-10 23:45
Tej Aj28-Mar-10 23:45 
AnswerRe: A Question about List in C# Pin
PSK_28-Mar-10 21:41
PSK_28-Mar-10 21:41 
GeneralRe: A Question about List in C# Pin
Pete O'Hanlon28-Mar-10 21:47
mvePete O'Hanlon28-Mar-10 21:47 
GeneralRe: A Question about List in C# Pin
PSK_28-Mar-10 22:44
PSK_28-Mar-10 22:44 
AnswerRe: A Question about List in C# Pin
V.28-Mar-10 23:50
professionalV.28-Mar-10 23:50 
AnswerRe: A Question about List in C# Pin
Bernhard Hiller30-Mar-10 21:35
Bernhard Hiller30-Mar-10 21:35 
QuestionMicrophone to nokia mobile communication Pin
mmdullah28-Mar-10 18:15
mmdullah28-Mar-10 18:15 
AnswerRe: Microphone to nokia mobile communication Pin
Mycroft Holmes28-Mar-10 19:38
professionalMycroft Holmes28-Mar-10 19:38 
AnswerRe: Microphone to nokia mobile communication Pin
V.28-Mar-10 20:19
professionalV.28-Mar-10 20:19 
Questionwant to create a popup window to show message on program start Pin
Alok Sharma ji28-Mar-10 15:54
Alok Sharma ji28-Mar-10 15:54 
AnswerRe: want to create a popup window to show message on program start Pin
Not Active28-Mar-10 17:13
mentorNot Active28-Mar-10 17:13 
AnswerRe: want to create a popup window to show message on program start Pin
Mycroft Holmes28-Mar-10 19:40
professionalMycroft Holmes28-Mar-10 19:40 

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.