Click here to Skip to main content
15,881,803 members
Home / Discussions / C#
   

C#

 
AnswerRe: SqlDataReader is not returning all rows Pin
Eddy Vluggen2-Sep-13 6:23
professionalEddy Vluggen2-Sep-13 6:23 
GeneralRe: SqlDataReader is not returning all rows Pin
Manfred Rudolf Bihy2-Sep-13 8:42
professionalManfred Rudolf Bihy2-Sep-13 8:42 
AnswerRe: SqlDataReader is not returning all rows Pin
Pete O'Hanlon2-Sep-13 8:45
mvePete O'Hanlon2-Sep-13 8:45 
GeneralRe: SqlDataReader is not returning all rows Pin
NarVish2-Sep-13 19:40
NarVish2-Sep-13 19:40 
GeneralRe: SqlDataReader is not returning all rows Pin
Pete O'Hanlon2-Sep-13 20:22
mvePete O'Hanlon2-Sep-13 20:22 
QuestionQuestion about using an if in a string Pin
skeeterz711-Sep-13 17:35
skeeterz711-Sep-13 17:35 
AnswerRe: Question about using an if in a string Pin
Dave Kreskowiak1-Sep-13 18:05
mveDave Kreskowiak1-Sep-13 18:05 
GeneralRe: Question about using an if in a string Pin
skeeterz711-Sep-13 18:31
skeeterz711-Sep-13 18:31 
Ok just going with the first example you gave me:

C#
Console.WriteLine(name + " What is her name?");
String herName = Console.ReadLine();
            if(herName == "ashley")
               {
                   do this stuff..
               }
Error	1	Use of unassigned local variable 'ashley'	
             {


I used the 2nd method as well and still get errors. The variable Ashley doesn't com into play until user input so I don't understand why I am getting the error.
GeneralRe: Question about using an if in a string Pin
Dave Kreskowiak1-Sep-13 18:37
mveDave Kreskowiak1-Sep-13 18:37 
GeneralRe: Question about using an if in a string Pin
skeeterz711-Sep-13 18:46
skeeterz711-Sep-13 18:46 
GeneralRe: Question about using an if in a string Pin
BillWoodruff1-Sep-13 19:42
professionalBillWoodruff1-Sep-13 19:42 
GeneralRe: Question about using an if in a string Pin
OriginalGriff2-Sep-13 3:58
mveOriginalGriff2-Sep-13 3:58 
GeneralRe: Question about using an if in a string Pin
AmitGajjar2-Sep-13 20:10
professionalAmitGajjar2-Sep-13 20:10 
GeneralRe: Question about using an if in a string Pin
OriginalGriff2-Sep-13 21:24
mveOriginalGriff2-Sep-13 21:24 
GeneralRe: Question about using an if in a string Pin
Dave Kreskowiak2-Sep-13 5:58
mveDave Kreskowiak2-Sep-13 5:58 
GeneralRe: Question about using an if in a string Pin
blitzkrieged2-Sep-13 14:16
blitzkrieged2-Sep-13 14:16 
AnswerRe: Question about using an if in a string Pin
liveoffedge2-Sep-13 0:15
professionalliveoffedge2-Sep-13 0:15 
GeneralRe: Question about using an if in a string Pin
OriginalGriff2-Sep-13 3:49
mveOriginalGriff2-Sep-13 3:49 
GeneralRe: Question about using an if in a string Pin
Keith Barrow2-Sep-13 6:21
professionalKeith Barrow2-Sep-13 6:21 
GeneralRe: Question about using an if in a string Pin
skeeterz713-Sep-13 6:30
skeeterz713-Sep-13 6:30 
AnswerRe: Question about using an if in a string Pin
AmitGajjar2-Sep-13 20:02
professionalAmitGajjar2-Sep-13 20:02 
QuestionDistinct Row or Rows in a datatable Pin
smh139231-Aug-13 22:00
smh139231-Aug-13 22:00 
AnswerRe: Distinct Row or Rows in a datatable Pin
Mycroft Holmes31-Aug-13 22:42
professionalMycroft Holmes31-Aug-13 22:42 
GeneralRe: Distinct Row or Rows in a datatable Pin
smh13922-Sep-13 10:48
smh13922-Sep-13 10:48 
AnswerRe: Distinct Row or Rows in a datatable Pin
susanna.floora1-Sep-13 19:09
susanna.floora1-Sep-13 19:09 

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.