Results 1 to 20 of 20

Thread: VB.NET to C# conversion - tips

Hybrid View

  1. #1
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: VB.NET to C# conversion - tips

    Quote Originally Posted by MrPolite
    hey thanks fixed it
    I almost forgot I had posted this thread before I was supposed to update with events and other stuff... havent had time soon I hope!
    Any further update?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  2. #2
    Hyperactive Member tailz's Avatar
    Join Date
    Jul 2002
    Posts
    306

    Re: VB.NET to C# conversion - tips

    Using For loops
    Note: when using for-loops or do-loops you can use continue; in C#. The continue "statement passes control to the next iteration of the enclosing iteration statement in which it appears" (MSDN). Correct me if I'm wrong but I don't think this exists in VB.NET
    Correcting you :] May only apply to 2.0 of the Framework (?) but just use:

    Code:
    For num as integer = 1 to 10
      If num = 5 Then
        Continue For 'Skips to the "Next" statement
      End if
      Console.WriteLine(num.ToString())
    Next

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