Results 1 to 7 of 7

Thread: [RESOLVED] for loop question

Threaded View

  1. #1

    Thread Starter
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    Resolved [RESOLVED] for loop question

    im having trouble with the santax of the for loop in C#


    in vb.net it would be something like

    For index = 0 To table.Columns.Count - 1 Step 1
    some stuff

    Next

    in c#

    im getting stuck

    /code
    int index = table.columns.count -1;

    For index ( how do i tell it to step down by -1 till 0)
    {
    some stuff
    }
    Last edited by Crash893; Sep 26th, 2006 at 07:53 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width