Click here to Skip to main content
15,902,031 members
Home / Discussions / C#
   

C#

 
GeneralRe: Database Connection Issue Pin
dboy22127-Mar-07 2:04
dboy22127-Mar-07 2:04 
QuestionProblem of hierachical data in datagrid [modified] Pin
phantanagu26-Mar-07 15:42
phantanagu26-Mar-07 15:42 
QuestionTwo methods one output version 2.0 Pin
JMOdom26-Mar-07 15:12
JMOdom26-Mar-07 15:12 
AnswerRe: Two methods one output version 2.0 Pin
Christian Graus26-Mar-07 15:26
protectorChristian Graus26-Mar-07 15:26 
GeneralRe: Two methods one output version 2.0 Pin
JMOdom26-Mar-07 16:53
JMOdom26-Mar-07 16:53 
GeneralRe: Two methods one output version 2.0 Pin
Christian Graus26-Mar-07 16:56
protectorChristian Graus26-Mar-07 16:56 
GeneralRe: Two methods one output version 2.0 Pin
Vikram A Punathambekar26-Mar-07 19:58
Vikram A Punathambekar26-Mar-07 19:58 
AnswerRe: Two methods one output version 2.0 Pin
Mike Hankey26-Mar-07 16:55
mveMike Hankey26-Mar-07 16:55 
Its a matter of scope

If you have the following;

static int resulta = 0;
public static void MethodOne()
{
result a;
}
public static void MethodTwo()
{
result b;
result a; //Is legal

}

then result a can be referenced in MethodTwo

but if you have

public static void MethodOne()
{
int result a;
}
public static void MethodTwo()
{
result b;
result a; //Is not valid because it is not in scope
}

Hope this helps and that I understood you correctly

Mike





Everybody gotta be somebody

Question.Two methods one output Pin
JMOdom26-Mar-07 14:57
JMOdom26-Mar-07 14:57 
AnswerRe: .Two methods one output Pin
Christian Graus26-Mar-07 15:05
protectorChristian Graus26-Mar-07 15:05 
Questionhow to set digits precision of a float Pin
uowzd0126-Mar-07 14:45
uowzd0126-Mar-07 14:45 
AnswerRe: how to set digits precision of a float Pin
Christian Graus26-Mar-07 14:46
protectorChristian Graus26-Mar-07 14:46 
GeneralRe: how to set digits precision of a float Pin
uowzd0126-Mar-07 15:23
uowzd0126-Mar-07 15:23 
GeneralRe: how to set digits precision of a float Pin
Christian Graus26-Mar-07 15:39
protectorChristian Graus26-Mar-07 15:39 
GeneralRe: how to set digits precision of a float Pin
Saeed Jafarian7-Aug-11 12:32
Saeed Jafarian7-Aug-11 12:32 
AnswerRe: how to set digits precision of a float Pin
Bala subramanyam M26-Mar-07 18:19
Bala subramanyam M26-Mar-07 18:19 
GeneralRe: how to set digits precision of a float Pin
Saeed Jafarian12-Aug-11 13:57
Saeed Jafarian12-Aug-11 13:57 
AnswerRe: how to set digits precision of a float Pin
Sujith C Jose27-Mar-07 0:55
Sujith C Jose27-Mar-07 0:55 
GeneralRe: how to set digits precision of a float Pin
Saeed Jafarian12-Aug-11 14:02
Saeed Jafarian12-Aug-11 14:02 
Questionhow to copy folder in csharp ? Pin
hdv21226-Mar-07 12:51
hdv21226-Mar-07 12:51 
AnswerRe: how to copy folder in csharp ? Pin
Christian Graus26-Mar-07 13:04
protectorChristian Graus26-Mar-07 13:04 
AnswerRe: how to copy folder in csharp ? Pin
Balaji Prabu AL27-Mar-07 1:14
Balaji Prabu AL27-Mar-07 1:14 
QuestionHow to call the paint event handler Pin
laura131626-Mar-07 11:07
laura131626-Mar-07 11:07 
AnswerRe: How to call the paint event handler Pin
Christian Graus26-Mar-07 11:31
protectorChristian Graus26-Mar-07 11:31 
AnswerRe: How to call the paint event handler Pin
Ravi Bhavnani26-Mar-07 11:43
professionalRavi Bhavnani26-Mar-07 11:43 

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.