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

C#

 
AnswerRe: SFTP using FtpWebRequest class? Pin
led mike9-Nov-06 6:48
led mike9-Nov-06 6:48 
GeneralRe: SFTP using FtpWebRequest class? Pin
Jason Weibel9-Nov-06 7:09
Jason Weibel9-Nov-06 7:09 
GeneralRe: SFTP using FtpWebRequest class? Pin
led mike9-Nov-06 7:39
led mike9-Nov-06 7:39 
GeneralRe: SFTP using FtpWebRequest class? Pin
Jason Weibel9-Nov-06 7:52
Jason Weibel9-Nov-06 7:52 
AnswerRe: SFTP using FtpWebRequest class? Pin
led mike9-Nov-06 8:53
led mike9-Nov-06 8:53 
GeneralRe: SFTP using FtpWebRequest class? Pin
Jason Weibel9-Nov-06 10:52
Jason Weibel9-Nov-06 10:52 
GeneralRe: SFTP using FtpWebRequest class? Pin
led mike9-Nov-06 11:07
led mike9-Nov-06 11:07 
QuestionC# Express returning on } Pin
Killer_XYZ9-Nov-06 6:05
Killer_XYZ9-Nov-06 6:05 
Visual c# express on Win XP x64

I wrote this part of the code:
<br />
for (int i = 1; i < 11; i++)<br />
{<br />
  for (int j = 1; j < 11; j++)<br />
  {<br />
    dataGridView1[i, j].Value = "0";<br />
  }<br />
}<br />

and the program seem to be returning form the method on the first } it encounters.
Debugging also shows that it starts doing the first for the goes to the 2nd one and when the 2nd one is finished it just drops out of the method.

but as for:
<br />
private int test()<br />
{<br />
  int g;<br />
  for (int i = 0; i < 9; i++)<br />
  {<br />
    g = 88;<br />
  }<br />
  g = 99;<br />
  return g;<br />
}<br />

99 is returned.

Any ideas what might be wrong?

Long live open source - Free source.

AnswerRe: C# Express returning on } Pin
Guffa9-Nov-06 7:53
Guffa9-Nov-06 7:53 
AnswerRe: C# Express returning on } Pin
Killer_XYZ9-Nov-06 8:03
Killer_XYZ9-Nov-06 8:03 
GeneralRe: C# Express returning on } Pin
Guffa9-Nov-06 14:12
Guffa9-Nov-06 14:12 
Questionhow select adata from sql by c# Pin
jemi jets9-Nov-06 5:41
jemi jets9-Nov-06 5:41 
AnswerRe: how select adata from sql by c# Pin
ednrgc9-Nov-06 6:43
ednrgc9-Nov-06 6:43 
GeneralRe: how select adata from sql by c# Pin
jemi jets9-Nov-06 9:37
jemi jets9-Nov-06 9:37 
AnswerRe: how select adata from sql by c# Pin
ednrgc9-Nov-06 6:45
ednrgc9-Nov-06 6:45 
AnswerRe: how select adata from sql by c# Pin
Christian Graus9-Nov-06 9:09
protectorChristian Graus9-Nov-06 9:09 
Questionexception: Cannot modify the Items collection when the DataSource property is set. Pin
Saira Tanwir9-Nov-06 3:54
Saira Tanwir9-Nov-06 3:54 
AnswerRe: exception: Cannot modify the Items collection when the DataSource property is set. Pin
Parwej Ahamad9-Nov-06 5:30
professionalParwej Ahamad9-Nov-06 5:30 
GeneralRe: exception: Cannot modify the Items collection when the DataSource property is set. Pin
Saira Tanwir9-Nov-06 21:57
Saira Tanwir9-Nov-06 21:57 
GeneralRe: exception: Cannot modify the Items collection when the DataSource property is set. Pin
Parwej Ahamad10-Nov-06 5:05
professionalParwej Ahamad10-Nov-06 5:05 
QuestionGarbage Collection ? or something else ? Pin
C#_Dude9-Nov-06 3:41
C#_Dude9-Nov-06 3:41 
AnswerRe: Garbage Collection ? or something else ? Pin
Guffa9-Nov-06 3:52
Guffa9-Nov-06 3:52 
AnswerRe: Garbage Collection ? or something else ? Pin
Jon Hulatt9-Nov-06 3:53
Jon Hulatt9-Nov-06 3:53 
Questiondatagridview and xml Pin
Yustme9-Nov-06 3:09
Yustme9-Nov-06 3:09 
AnswerRe: datagridview and xml Pin
Drew McGhie9-Nov-06 9:30
Drew McGhie9-Nov-06 9:30 

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.