SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    continue statement in vb.net web application

    Hello all.

    I want to use the "continue" statement in the for loop .I know how to use it in the c#,but i don't know how to use it in the vb.net 2003.

    I am searching on it,I have tried some code also,but it doesn't work.

    Please help me
    Thanks in advance

  2. #2
    SitePoint Guru Wullie's Avatar
    Join Date
    Oct 2002
    Location
    Greenock, Scotland
    Posts
    701
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not sure about VB.NET 2003 but in 2005

    Code:
    For Each i As Integer In arrIntegers
        If i Mod 3 = 0 Then
            Continue For
        End If
        
        Label.Text &= i.ToString
    Next
    ASP.NET Freelance Web Developer
    Bored? Check out my photography folio at Flickr


Bookmarks

Posting Permissions

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