Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. If Indexing Then Loop

If Indexing Then Loop

Scheduled Pinned Locked Moved The Weird and The Wonderful
comquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AspDotNetDev
    wrote on last edited by
    #1

    Found this in production code. Variable names changed to protect the innocent:

    For i As Integer = 0 To 0
    Dim lb As LinkButton = GetLinkButton(i)
    ' Do stuff with lb...
    Next

    Future proofing the code?

    [Forum Guidelines]

    H P 2 Replies Last reply
    0
    • A AspDotNetDev

      Found this in production code. Variable names changed to protect the innocent:

      For i As Integer = 0 To 0
      Dim lb As LinkButton = GetLinkButton(i)
      ' Do stuff with lb...
      Next

      Future proofing the code?

      [Forum Guidelines]

      H Offline
      H Offline
      HimanshuJoshi
      wrote on last edited by
      #2

      Scalablility :~

      1 Reply Last reply
      0
      • A AspDotNetDev

        Found this in production code. Variable names changed to protect the innocent:

        For i As Integer = 0 To 0
        Dim lb As LinkButton = GetLinkButton(i)
        ' Do stuff with lb...
        Next

        Future proofing the code?

        [Forum Guidelines]

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        Optimization... reduce the number of iterations until you achieve reasonable performantcy*. * I just made that up.

        G 1 Reply Last reply
        0
        • P PIEBALDconsult

          Optimization... reduce the number of iterations until you achieve reasonable performantcy*. * I just made that up.

          G Offline
          G Offline
          ghle
          wrote on last edited by
          #4

          Boss said to the newby, "take this code and make it run faster." :)

          Gary

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups