Click here to Skip to main content
15,903,175 members
Home / Discussions / C#
   

C#

 
GeneralRe: Macros Pin
Christian Graus11-Mar-08 9:27
protectorChristian Graus11-Mar-08 9:27 
GeneralRe: Macros Pin
Guffa11-Mar-08 10:31
Guffa11-Mar-08 10:31 
JokeRe: Macros Pin
Christian Graus11-Mar-08 10:56
protectorChristian Graus11-Mar-08 10:56 
Questionsetting win app mail Pin
shawn41411-Mar-08 8:32
shawn41411-Mar-08 8:32 
GeneralRe: setting win app mail Pin
Christian Graus11-Mar-08 8:54
protectorChristian Graus11-Mar-08 8:54 
GeneralRe: setting win app mail Pin
Ravenet11-Mar-08 17:31
Ravenet11-Mar-08 17:31 
Questiondynamic variables inside While loop Pin
Member 278914211-Mar-08 8:03
Member 278914211-Mar-08 8:03 
GeneralRe: dynamic variables inside While loop Pin
Christian Graus11-Mar-08 8:16
protectorChristian Graus11-Mar-08 8:16 
1 - can't be done. Instead, make an array and put that ending digit as the index into the array
2 - can't be done.

Your overall issue is that you have something like this:


Uri uri

for(whateveR)
{
Uri uri;


}

The second Uri can't have the same name as one in the higher scope. Just use a different name, it doesn't need to be different on each iteration, it just needs to be different than the name of the variable it would otherwise hide. Or, just use the same one, if the value does not matter in the higher scope.

string s = "one";

for(whateveR)
{
s = "two";


}

// now s == "two"

Christian Graus - Microsoft MVP - C++

"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

GeneralRe: dynamic variables inside While loop Pin
Member 278914211-Mar-08 8:29
Member 278914211-Mar-08 8:29 
QuestionRe: dynamic variables inside While loop Pin
Member 278914211-Mar-08 9:01
Member 278914211-Mar-08 9:01 
GeneralRe: dynamic variables inside While loop Pin
Christian Graus11-Mar-08 9:10
protectorChristian Graus11-Mar-08 9:10 
GeneralRe: dynamic variables inside While loop Pin
Member 278914211-Mar-08 9:12
Member 278914211-Mar-08 9:12 
AnswerRe: dynamic variables inside While loop Pin
buchstaben11-Mar-08 8:18
buchstaben11-Mar-08 8:18 
GeneralIndicate column sorting in DataGridView column Pin
AndrusM11-Mar-08 7:58
AndrusM11-Mar-08 7:58 
QuestionHelp on LINQ Pin
belzer11-Mar-08 7:50
belzer11-Mar-08 7:50 
General[Cross Post] Re: Help on LINQ Pin
Scott Dorman11-Mar-08 8:03
professionalScott Dorman11-Mar-08 8:03 
GeneralRe: [Cross Post] Re: Help on LINQ Pin
belzer11-Mar-08 8:08
belzer11-Mar-08 8:08 
GeneralRe: [Cross Post] Re: Help on LINQ Pin
Scott Dorman11-Mar-08 8:24
professionalScott Dorman11-Mar-08 8:24 
GeneralRe: Help on LINQ Pin
Scott Dorman11-Mar-08 8:50
professionalScott Dorman11-Mar-08 8:50 
GeneralRe: Help on LINQ Pin
belzer11-Mar-08 9:17
belzer11-Mar-08 9:17 
GeneralRe: Help on LINQ Pin
Scott Dorman11-Mar-08 9:40
professionalScott Dorman11-Mar-08 9:40 
Questionconvert byte[] to short[] Pin
eyalbi00711-Mar-08 7:44
eyalbi00711-Mar-08 7:44 
GeneralRe: convert byte[] to short[] Pin
m@u11-Mar-08 7:54
m@u11-Mar-08 7:54 
GeneralRe: convert byte[] to short[] Pin
eyalbi00711-Mar-08 8:01
eyalbi00711-Mar-08 8:01 
GeneralRe: convert byte[] to short[] Pin
m@u11-Mar-08 8:08
m@u11-Mar-08 8:08 

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.